Re: mysql_fetch_array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux