Posted by J.O. Aho on 02/27/06 09:26
Paddy Joy wrote:
> Hi,
>
> I'm running a query to return the contents of a MySQL table. I need to
> be able to use the returned data more than once in my page so instead of
> going through each row one by one using mysql_fetch_row() is it possible
> to store the result set in a dataset or 2-d table? This way I would only
> have to run one query on the database.
>
> Anybody got any ideas on this, is there a standard way of doing this?
while ($row = mysql_fetch_array($result)) {
array_push($stack, $row);
}
Navigation:
[Reply to this message]
|