>  기사  >  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으로 문의하세요.