=".$num; 报错如下: You have an erro"/> =".$num; 报错如下: You have an erro">
Home > Backend Development > PHP Tutorial > sql话语报错

sql话语报错

WBOY
Release: 2016-06-13 12:54:25
Original
819 people have browsed it

sql语句报错

$sql="select * from `abc_dem` where `p6`="."$gameid"." and `st`=1 and `p3`>=".$num;<br />
Copy after login


报错如下:
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'";
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template