我改成如下,结果又出错 $query=mysql_query("select * from info where l=$_get['l'] order by id desc limit 10");出错提示: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\web\janusadmin\title_show_first_all.php on line 4
改成这样试试。$sql="select * from info where l='".$_GET['l']."' order by id desc limit 10"; $query=mysql_query($sql);
改成楼上的之后出现如下提示: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\web\janusadmin\title_show_first_all.php on line 6
$query=mysql_query("select * from info where l=$_get['l'] order by id desc limit 10");出错提示:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\web\janusadmin\title_show_first_all.php on line 4
$query=mysql_query($sql);
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\web\janusadmin\title_show_first_all.php on line 6
为什么我升级了服务系统就不行了呢!
对了,有一点比较值得注意,当时mysql中的数据我是直接把data目录中的数据复制出来的,不是导出的!这个有问题吗?谢谢!