Oracle fetch array

From: Date: Thu, 03 May 2001 14:22:17 +0000
Subject: Oracle fetch array
Groups: php.windows 
Request: Send a blank email to php-windows+get-7259@lists.php.net to get a copy of this message
In MySQL, you can run something like this: - while ($row1=mysql_fetch_array($result_set)){ $name=$row1[Column1]; $desc=$row1[Column3]; echo"<tr><td>$name</td><td>$desc</td></tr>"; Does anyone know a way of doing the same with oracle - by which I mean refering to the columns in the array by name rather than by index (ie not while (ora_fetch_into($curs, &$row1)){ $name=$row1[0]; $desc=$row1[2]; echo"<tr><td>$name</td><td>$desc</td></tr>"; ) Thanks Tom

« previous php.windows (#7259) next »