sql 问题

xk_520 xk_520 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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 时候的错误 请指教 ;
...全文
评论 3
收藏 已收藏
分享
返回顶部
xk_520
基础编程 21,889 成员 140,329 内容