array

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

 



Hi all,
I want to put result of query in a two dimensional array like this:

title[0]=x   description [0]=y
title[1]=z   description [1]=w
.........    ................

any idea would be appreciated

$query = "SELECT * FROM photo";
$result=mysql_query($query);


while ($row = mysql_fetch_array($result)) 
{
 
  $title=$row['title'];
  $description=$row['description'];
  
  }
 
---------------------------------
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux