MakeBug Micropoor@163.com
//akcms\welcome.php
<?php //略 } elseif($get_action == 'runsql') { if(isset($post_sql)) { $query = $db->query($post_sql); $body = ''; if($query !== true && !empty($query)) { while($result = $db->fetch_array($query)) { if(empty($header)) { $header = '<tr class="header">'; foreach(array_keys($result) as $field) { //略 $smarty->assign('result', $result); } } $smarty->assign('sql', $post_sql); } displaytemplate('admincp_runsql.htm'); } //略 ?>
|