array
| From: | elk dolk | Date: | Thu, 29 Mar 2007 20:29:45 +0000 |
| Subject: | array | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-43371@lists.php.net to get a copy of this message | ||
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.