我要一次返回所有栏目的id,为何下列语句只返回一条记录呢?应该是返回所有的吧.
$query=mysql_query("select id from arctype ");
$type = mysql_fetch_array($query);
var_dump($type);
mysql结构:
 id  reid  topid
 1   0     0
 2   0     0
 3   0     0
 4   0     0
 5   0     0
返回:array(2) { [0]=> string(1) "1" ["id"]=> string(1) "1" }