www.0g.com/source/pc/index.php
2021-08-30 15:33:51 +08:00

13 lines
369 B
PHP

<?php
$sql = "SELECT * FROM qiangwan_hw.gw_game where status = 1";
$game_data = exec_db2($sql);
while($row = mysqli_fetch_array($game_data)){
$game[] = $row;
}
$sql = "SELECT * FROM qiangwan_hw.gw_story limit 1";
$story = getonerecord2($sql)['gw_story'];
$tpl->assign('game',$game);
$tpl->assign('story',$story);
$tpl->display("{$tp}.html");
?>