That is not a two dimensional array. Its two one dimensional arrays and yo do it like this

while ($row = mysql_fetch_array($result))

 $title[]           =$row['title'];
 $description[]  =$row['description'];



From: elk dolk <[EMAIL PROTECTED]>
To: "" <>
Subject: [PHP-DB] array
Date: Thu, 29 Mar 2007 13:29:45 -0700 (PDT)

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";

while ($row = mysql_fetch_array($result))



Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.

Check Out Our List Of Trendy Restaurants. You'll Eat It Up!!378

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to