NYCPHP Meetup

NYPHP.org

[nycphp-talk] php mysql question

Daniel Convissor danielc at analysisandsolutions.com
Sat Oct 9 17:16:54 EDT 2004


On Sat, Oct 09, 2004 at 02:10:30PM -0300, Henry Ponce wrote:
> $result = mysql_query($q);
> 	$newresult = $result;
> 	while ($row = mysql_fetch_array($newresult)){
> 		
> 	}

I have a feeling you want to be using mysql_data_seek($result, 0).  Don't 
copy the result resource.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list