原帖由 cuqk 于 2005-9-22 13:47 发表
Parse error: parse error, unexpected '=' in /www/users/com/w/e/90/bbs/topicadmin.php on line 382
这是因为什么?
你原来的是
- $db->query("UPDATE $table_threads SET replies='$replies', lastpost='$post[dateline]', lastposter='".addslashes($post['author'])."', threads_moderate='10', threads_moderatetime='$timestamp', threads_moderator='$discuz_user', threads_moderatorid='$discuz_uid' WHERE tid='$tid'");
- showmessage('admin_succeed', "viewthread.php?tid=$tid&fpage=$fpage");
复制代码
不正确,应该是
- $db->query("UPDATE $table_threads SET replies='$replies', lastpost='$post[dateline]', lastposter='".addslashes($post['author'])."', threads_moderate='10', threads_moderatetime='$timestamp', threads_moderator='$discuz_user', threads_moderatorid='$discuz_uid' WHERE tid='$tid'");
- showmessage('admin_succeed', "viewthread.php?tid=$tid&fpage=$fpage");
复制代码
你添加代码的时候太不小心了.位子弄错了! |