rubbishman大大,我照你第一楼的帖子,修改z_game.php/z_bsgame.php/z_spgame.php,将(yy)改成相应档案名,bs与sp的,可是还是出现下面这个问题的?
$query = $db->query("SELECT gamedate, gametime FROM $table_z_cup_(yy)game WHERE id=$gameid");
$game = $db->fetch_array($query);
$gdate = explode("-", $game[gamedate]);
$gtime = explode(":", $game[gametime]);
$endtime = mktime($gtime[0],$gtime[1],0,$gdate[1],$gdate[2],$gdate[0]);
if(time()-$endtime > 0){
showmessage("這場比賽時間已過,下次請早。",'z_(yy)cup.php');
}
Discuz! info: MySQL Query Error
User: 哈维凯斯
Time: 2005-6-15 3:10pm
Script: /forum/z_bsgame.php
SQL: SELECT gamedate, gametime FROM WHERE id=1
Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id=1' at line 1
Errno.: 1064
Similar error report has beed dispatched to administrator before.
我资料库里好像没有`cdb_z_cup_bsgame`这个TABLE ?
[ 本帖最后由 ZR 于 2005-6-15 15:57 编辑 ] |