请楼主把这问题放在一楼 以方便大家能够解决
如果点击 我的衣柜 出现
错误:
提示:
Discuz! info: MySQL Query Error
User: admin
Time: 2006-1-23 11:00pm
Script: /plugin.php
SQL: SELECT u.* , m.username,i.imagename,i.endurance as dates,i.cost FROM cdb_images_user u ,cdb_images_data i LEFT JOIN cdb_members m ON m.uid = u.imagefrom WHERE u.userid = '1' AND u.dafaultuse = '3' AND i.sort=u.classid AND i.graphic=CONCAT(u.picid,'.gif') ORDER BY u.buydata
Error: Unknown column 'u.imagefrom' in 'on clause'
程序文件跟数据库有冲突,请使用正确的程序文件上传上去覆盖
An error report has been dispatched to our administrator.
请修改
virtualimage/images_user.php
找
[Copy to clipboard]CODE:
$imagesquery = $db->query("SELECT u.* , m.username,i.imagename,i.endurance as dates FROM $tablepre"."images_user u ,$tablepre"."images_data i LEFT JOIN $tablepre"."members m ON m.uid = u.imagefrom WHERE u.userid = '$imagesuser[uid]' AND u.dafaultuse = '1' AND i.sort=u.classid AND i.graphic=CONCAT(u.picid,'.gif') ORDER BY u.buydata");
更換為
[Copy to clipboard]CODE:
$imagesquery = $db->query("SELECT u.*, m.username, i.imagename, i.endurance as dates FROM ($tablepre"."images_user u, $tablepre"."images_data i) LEFT JOIN $tablepre"."members m ON m.uid = u.imagefrom WHERE u.userid = '$imagesuser[uid]' AND u.dafaultuse = '1' AND i.sort=u.classid AND i.graphic=CONCAT(u.picid,'.gif') ORDER BY u.buydata");
如果是 破衣篓 | 出现以上问题
请修改
virtualimages/images_bad.php
找
[Copy to clipboard]CODE:
$imagesquery = $db->query("SELECT u.* , m.username,i.imagename,i.endurance as dates,i.cost FROM $tablepre"."images_user u ,$tablepre"."images_data i LEFT JOIN $tablepre"."members m ON m.uid = u.imagefrom WHERE u.userid = '$imagesuser[uid]' AND u.dafaultuse = '3' AND i.sort=u.classid AND i.graphic=CONCAT(u.picid,'.gif') ORDER BY u.buydata");
更换
[Copy to clipboard]CODE:
$imagesquery = $db->query("SELECT u.*, m.username,i.imagename,i.endurance as dates,i.cost FROM ($tablepre"."images_user u ,$tablepre"."images_data i) LEFT JOIN $tablepre"."members m ON (m.uid = u.imagefrom) WHERE u.userid = '$imagesuser[uid]' AND u.dafaultuse = '3' AND i.sort=u.classid AND i.graphic=CONCAT(u.picid,'.gif') ORDER BY u.buydata");
以上转自其他会员的帖 只是小弟我把它的错误指定一下而已哦
希望能帮得到大家:) |