火车采集器软件交流官方论坛

 找回密码
 加入会员
搜索
火车采集器V9版免费下载火车浏览器 - 可视采集,万能群发,全自动脚本工具
查看: 2716|回复: 3

vus520哥哥...用了你的自动发布文章程序出现这种问题!~~~

[复制链接]
发表于 2009-5-11 11:27:01 | 显示全部楼层 |阅读模式
<?php
/*
Page: /new.php?no=20&order=rand
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 'rand  limit 20' at line 1 <br />Error sql: <font color='red'>SELECT id FROM `dede_archives` where arcrank ='-1'   order by id rand  limit 20 ;</font>
*/
?>
<?php
/*
Page: /new.php?no=20&order=rand
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 'rand  limit 20' at line 1 <br />Error sql: <font color='red'>SELECT id FROM `dede_archives` where arcrank ='-1'   order by id rand  limit 20 ;</font>
*/
?>
<?php
/*
Page: /new.php?no=20&order=rand
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 'rand  limit 20' at line 1 <br />Error sql: <font color='red'>SELECT id FROM `dede_archives` where arcrank ='-1'   order by id rand  limit 20 ;</font>
*/
?>
<?php
/*
Page: /new.php?no=50&order=rand
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 'rand  limit 50' at line 1 <br />Error sql: <font color='red'>SELECT id FROM `dede_archives` where arcrank ='-1'   order by id rand  limit 50 ;</font>
*/
?>

俺不懂SQL...vus520哥哥能说下是什么原因吗???
发表于 2009-5-11 11:40:12 | 显示全部楼层
语法错误
 楼主| 发表于 2009-5-11 11:43:52 | 显示全部楼层
语法错误
ghostscat 发表于 2009-5-11 11:40


大哥...能告诉我解决办法吗?
发表于 2009-5-13 17:48:56 | 显示全部楼层
这是Mysql的语法错误,需要把SQL语句的rand改成rand()
您需要登录后才可以回帖 登录 | 加入会员

本版积分规则

QQ|手机版|Archiver|火车采集器官方站 ( 皖ICP备06000549 )

GMT+8, 2024-11-15 12:10

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表