($_GET['class']==""); {} $result=$db->query("select * from news where classid='".$class."' and id while($row=$db->getarray($result)){ ?> document.write("
"); } ?>
{ $result=$db->query("select * from news where classid='".$class."' and id>'".$id."' order by id limit 0,1"); } while($row=$db->getarray($result)) { ?> document.write("
if($_GET['id']=="");
($_GET['class']=="");
<br><font color="#e78608">------解决方案--------------------</font><br>($_GET['class']=="");<br>{}<br>……<br><br>{<br>$result=$db->query("select * from news where classid='".$class."' and id>'".$id."' order by id limit 0,1");<br>}<br>……<br>代码的括号没用的太多,不合语法规则。
<br><font color="#e78608">------解决方案--------------------</font><br>说的对,代码看起来有点乱啊!<br>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn