是啊,不过何必这么麻烦呢
$arr=mysql_fetch_array($result);
就行了吧