一个读文件中的小问题
<? @ $fp=fopen("../order/order.txt","r"); if(!$fp) ...
作者 吕建磊 发布于 0000-00-00 分类:php基础编程
SQL错误 -- [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 ' at line 1]
SQL错误 -- [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 ' at line 1]
逛论坛交流:这个是怎么造成的?
>sql语法错误
>是不是说要用单引号?
>但是我第一行什么也没有啊就一个<?这个
第二行是一个require,再别的文件里也没有错啊
>他提示你那行出错 并不代表错误就一定出在那一行,可能在别的行有错误 找错的时候 不要太局限
>是呀,也许是说你sql语句的第一行呢。
>我知道不一定是第一行
可是我的sql,在其它文件中运行没有错误
6 条回复
回复