加上后出现这个错误。。。该怎么办呢?
//热门关键词排行标签文件 function user_show_tags($sum='100',$tbname='news'){ global $empire,$dbtbpre,$public_r; $string=array(); $myarray=array(); function shuffle_assoc($array){ $randomized_keys=array_rand($array,count($array)); foreach($randomized_keys as $current_key){ $output[$current_key]=$array[$current_key]; } return $output; } function fontsize($count,$i){ $i<=$count*0.05?$return='1':($i<=$count*0.20?$return='2':($i<=$count*0.40?$return='3':($i<=$count*0.70?$return='4':$return='5'))); return $return;; } function keyboard($tbname){ global $empire,$dbtbpre; $sql=$empire->query("select keyboard from {$dbtbpre}ecms_{$tbname}"); while ($r = $empire->fetch ($sql)){ if ($r[keyboard]){ $keyboard.=','.$r[keyboard]; } } return $keyboard; } $keyboard=trim(keyboard($tbname),','); $array=explode(',',$keyboard); $count=array_count_values($array); arsort($count,SORT_NUMERIC); foreach($count as $key=>$val){ array_push($string,$key.'|'.$val); } $str=array_chunk($string,$sum); $counts=count($str[0]); for ($i=0; $i<$counts; $i++){ $mykey=explode('|',$str[0][$i]); $fontsize=fontsize($counts,$i); $myarray+=array("$mykey[0]"=>"$fontsize"); } $myarray=shuffle_assoc($myarray); $r=$empire->fetch1("select tempid from ".GetTemptb("enewssearchtemp")." where isdefault=1 limit 1"); $tempid=$r[tempid]; foreach($myarray as $key=>$val){ $links=$public_r[newsurl]."e/search/?searchget=1&tbname=$tbname&tempid=$tempid&show=keyboard&keyboard=".$key; echo ''.$key.' '; } }
|