首页  >  文章  >  php教程  >  check the manual that corresponds to your MySQL server version for the right syntax的错误解析,correspondssyntax

check the manual that corresponds to your MySQL server version for the right syntax的错误解析,correspondssyntax

WBOY
WBOY原创
2016-06-13 09:02:541931浏览

check the manual that corresponds to your MySQL server version for the right syntax的错误解析,correspondssyntax

错误原因一:SQL关键字冲突

分析:例:把desc命名为字段名

 

错误原因二:$right=$DB->fetch_one_array("SELECT rsnumber FROM ".$db_prefix."userright WHERE usertitle=".$usertitle"");

分析:.$usertitle.应该是这样的表示方式与数据库中的字段发生冲突,改成上图中的代码就可以了

(备注:个人拙见,希望有人补充!)

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn