完成新的 si 工作,但我有这个错误:
Warning: mysql_fetch_array() [function.mysql-fetch-array]: The result type should be either MYSQL_NUM, MYSQL_ASSOC or MYSQL_BOTH. in /home/xdesign/public_html/Powerful/header.php on line 885
在第 885 行,我有这个功能:
878 function AddView($id,$oldviews)
879 {
880 mysql_query("UPDATE banners SET views=".($oldviews+1)." WHERE id=".$id);
881 }
882 $result=mysql_query("SELECT * FROM `banners` WHERE state=0");
883 $got=array();
884 mysql_data_seek($result, 0);
885 while ($row = mysql_fetch_array($result, $numass)) {
886 array_push($got, $row);
887 }