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 'order by cid desc' at line 1
这是一个什么错误啊,请大侠指点
SQL Error:
MySQL Query Error
select * from dg_taobao_cat where cid= order by cid desc
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 'order by cid desc' at line 1
PHP Backtrace
File Line Function
includesdb_mysql.class.php 92 db_mysql->halt()
includestable.class.php 119 db_mysql->query()
taobao.php 79 TableClass->getdata()
taobaoview.php 144 taobao_position()
taobao.php 42 include_once()
select * from dg_taobao_cat where cid=xxxx order by cid desc
把xxx先补全了
但是cid=具体指后面排序就没什么意义了select * from dg_taobao_cat order by cid desc
这个也许是你要的
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。