sql语句报错
$sql="select * from `abc_dem` where `p6`="."$gameid"." and `st`=1 and `p3`>=".$num;<br />
报错如下:
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'";
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