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 时候的错误 请指教 ;
...全文
40 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
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

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧