$result=$db->query($query);while($rs=mysql_fetch_array($result)){$newArray[]=$rs(.......);}根据你的情况补充了。你字段什么都没给出,具体要求也没写明白!
循环便利,