Warning: Illegal string offset 'cid' in E:\wwwroot\www\templates\default\productshow.php on line 11

Notice: Uninitialized string offset: 0 in E:\wwwroot\www\templates\default\productshow.php on line 11

ThinkPHP安全警告:MySql Error!

错误文件:/index.php
错误信息: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 Error sql: SELECT * FROM `exc_web_xlcategory` where id=

sql语句出错:select * from `exc_taskpici` where tid= AND UNIX_TIMESTAMP(stime) > UNIX_TIMESTAMP(NOW()) order by stime asc

错误信息: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 UNIX_TIMESTAMP(stime) > UNIX_TIMESTAMP(NOW()) order by stime asc' at line 1