=".$num;报错如下:You have an error in your">
当前位置:Gxlcms > PHP教程 > sql话语报错

sql话语报错

时间:2021-07-01 10:21:17 帮助过:18人阅读

sql语句报错
$sql="select * from `abc_dem` where `p6`="."$gameid"." and `st`=1 and `p3`>=".$num;


报错如下:
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 'and st=1 and p3>=' at line 1
select * from ***_dem where p6= and st=1 and p3>= sql mysql


------解决方案--------------------
$sql="select * from `abc_dem` where `p6`='$gameid' and `st`=1 and `p3`>='$num'";

人气教程排行