<?php$array = array();$query = "SELECT * FROM tabla";$result = mysql_query($query);while($row = mysql_fetch_array($result)) { $array[] = $row;}?>