PHPUP info: MySQL Query Error
Time: 2011-1-8 4:17pm
Script: 
SQL: select * from `tuangouke`.`phpup_object` where 1 and type = 'spike' and 1294474675 > starttime and 1294474675 < endtime order by localtion limit 
Error: 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
Errno.: 1064

解决方案 »

  1.   

    limit 后面的数字呢?
     select * from `tuangouke`.`phpup_object` where 1 and type = 'spike' and starttime< 1294474675 and endtime>1294474675  order by localtion limit ? ?  
      

  2.   

    select * from `tuangouke`.`phpup_object` where 1 and type = 'spike' and 1294474675 > starttime and 1294474675 < endtime order by localtion limit 100检查你的PHP程序,生成SQL语句字符串的时候没有带分页的数字代入。
      

  3.   

    你好 这个问题我已经解决 主要问题就是那个global变量的事情。
    具体可以参看我的个人网站http://www.51hainuo.cn/lht_cv2-0_0103-bug.html
    日志讲的就是如何处理这个错误文章的标题叫做 关于蓝海豚(大维)Lht_CV2.0_0103 商业版团购导航程序的报错修改