[nycphp-talk] php mysql question
Henry Ponce
henry at beewh.com
Sat Oct 9 13:10:30 EDT 2004
hello people:
i was wondering if someone tell me if this is possible...
i have this:
$q = 'select * from users';
$result = mysql_query($q);
There's no problem with that. I want to know if i can do this:
$newresult = $result;
I want to run the query once, but use the result set again. Whenever i do
this, $newresult is empty, for example when i place it in:
while ($row = mysql_fetch_array($newresult)){
}
Can someone tell me the right way of doing this. I don't want to query the
database more than once.
Thank you,
Henry
More information about the talk
mailing list