本帖最后由 thomsoncb 于 2011-2-27 10:32 编辑
升级到SS7.0 20090422版本,进后台出现错误代码 ,请问是哪里出问题了? 出错代码如下,后台 资讯管理 每个页面都会有这个代码。
', $insertsqlarr, 1); } } if(!empty($addtagidarr)) { $insertstr = $comma = ''; foreach ($addtagidarr as $tagid) { $insertstr .= $comma.'(\''.$itemid.'\',\''.$tagid.'\',\''.$_SGLOBAL['timestamp'].'\',\''.$type.'\')'; $comma = ','; } $_SGLOBAL['db']->query('REPLACE INTO '.tname('spacetags').' (itemid, tagid, dateline, type) VALUES '.$insertstr); } } //获取相关信息ID function getrelativeitemids($itemid, $typearr=array(), $num=10) { global $_SGLOBAL; $tagidarr = array(); $query = $_SGLOBAL['db']->query("SELECT tagid FROM ".tname('spacetags')." WHERE itemid='$itemid'"); while ($value = $_SGLOBAL['db']->fetch_array($query)) { $tagidarr[] = $value['tagid']; } if(empty($tagidarr)) return ''; $sqlplus = ''; if(!empty($typearr)) $sqlplus = "AND type IN (".simplode($typearr).")"; $itemidarr = array(); $query = $_SGLOBAL['db']->query("SELECT itemid FROM ".tname('spacetags')." WHERE tagid IN (".simplode($tagidarr).") AND itemid<>'$itemid' $sqlplus ORDER BY itemid DESC LIMIT 0, $num"); while ($value = $_SGLOBAL['db']->fetch_array($query)) { $itemidarr[] = $value['itemid']; } return implode(',', $itemidarr); } ?>
|