原帖由 llw318 于 2006-1-23 23:02 发表
错误:
提示:
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_ ...
可能是 MySQL 或 php 版本的問題, 試修改 virtualimage/images_user.php
找
- $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");
复制代码
更換為
- $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");
复制代码
[ 本帖最后由 poka 于 2006-1-25 12:58 编辑 ] |