主题:  帮忙看看这断代码?关于数据库查询

看我的资料

职务:普通成员
等级:1
金币:0.0
发贴:81
注册:2003/5/24 12:06:05
#12004/3/12 9:21:42
我在使用服务器包容的时候,用到以下语句,为什么提示错误:不支持……
问题在哪儿?
<% call tmpimage("select * from images where id= "&image_id&" ORDER BY image_id DESC") %>
为什么改成这样,不对数据排序又可以:
<% call tmpimage("select * from images where id= "&image_id %>

请教了,谢谢。



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
#22004/3/13 9:26:33
你怎么定义的tmpimage?返回的是什么?