//SQL语句 12 var_dump($sql); 13 $res = mysql_query($sql); 14 $arr = array(); 15 //吧结果存入数组 并记录数组长度 16 $count = 0; 17 while($data = mysql_fetch_array($res)){ 18 $arr[$count] = $data; 19 $count++;