sql 问题

xk_520 2009-08-04 10:43:09
echo $sql="sqlect * from ".tname("app_tw_gift")." where uid= $space[uid];";

echo $count=$_SGLOBAL['db']->num_rows($_SGLOBAL['db']->query("sqlect * from ".tname("app_tw_gift")." where uid= $space[uid]"));

错误提示
MySQL Error
Message: MySQL Query Error
SQL: sqlect * from uchome_app_tw_gift where uid= 1
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 'sqlect * from uchome_app_tw_gift where uid= 1' at line 1
Errno.: 1064

输出 $count 时候的错误 请指教 ;
...全文
11 点赞 收藏 3
写回复
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xk_520 2009-08-04
哎 看了几遍了 居然这里写错了 郁闷
回复
tfxg 2009-08-04
你也太粗心了吧
回复
tfxg 2009-08-04
sqlect * from uchome_app_tw_gift where uid= 1
改成
select * from uchome_app_tw_gift where uid= 1
回复
发动态
发帖子
基础编程
创建于2007-09-28

2.1w+

社区成员

从PHP安装配置,PHP入门,PHP基础到PHP应用
申请成为版主
社区公告
暂无公告