Re: Oracle fetch array

From: Date: Thu, 03 May 2001 16:41:06 +0000
Subject: Re: Oracle fetch array
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7266@lists.php.net to get a copy of this message
while (ora_fetch_into($curs, &$row1)){ explode($row1); echo "$NAME now = ".$rowl[1]; (I think the function is explode, if not I'm sure it begins with an e, if that helps... ;-) "Tom Mathews" <tom.mathews@st.com> wrote in message news:3AF16999.20A305A2@st.com... > 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 > > ---------------------------------------------------------------------------- ---- > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#7266) next »