6.1用户后台颁发勋章问题
在选定了一名用户后,颁发勋章 出现了以下错误
Warning: Invalid argument supplied for foreach() in /home/content/l/s/v/lsvking/html/inindia/admin/members.inc.php on line 1698
Discuz! info: MySQL Query Error
User: opopo
Time: 2008-4-26 1:54pm
Script: /admincp.php
SQL: SELECT medalid, expiration FROM [Table]medals WHERE medalid IN ()
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 ')' at line 1
Errno.: 1064
Similar error report has beed dispatched to administrator before.
if(!empty($medals)) {
$medalids = $comma = '';
foreach($medals as $key=> $medalid) {
$medalids .= "$comma'$key'";
$comma = ',';
}
[ 本帖最后由 eric123456 于 2008-4-26 14:44 编辑 ]