Re: mysql_fetch_array

From: Date: Sat, 03 Nov 2007 06:14:42 +0000
Subject: Re: mysql_fetch_array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264006@lists.php.net to get a copy of this message
On Friday 02 November 2007 18:23:03 Eduardo Vizcarra wrote: >   while($row=mysql_fetch_array($fotos)) >   { >    $fotos_mostrar[] = $row; >   } > > $fotos contains all records found in a db table, the SELECT statement is > retrieving 2 columns from a table, how do I store all records in a 2 > dimention table so I can use it later ? > > this WHILE sentence seems to only store the last record only That is peculiar; assuming that your query is properly executed and the code you're using to display the contents of $fotos_mostrar is written properly. Can you show us that code? -- Richard S. Crawford Editor-in-chief, Daikaijuzine (http://www.daikaijuzine.com) Personal website: http://www.mossroot.com Support me in the 2007 Write-a-thon: http://www.firstgiving.com/richardscrawford

« previous php.general (#264006) next »