lol, yeah i did that allready. I was talking about ODBC since it doesn't
have a "fetch_statement" function. I got it working though.
I noticed that after using OCIFetchStatement() though, you can no longer
access OCIColumnName(), it will return a blank value. So if you want to
access column names after calling OCIFetchStatement, you will need to load
the column names into an array beforehand.
Thanks,
Sean
-----Original Message-----
From: Stas Trefilov [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 12:00 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] arrays
Hello, "Alarion"!
You wrote:
> I want to loop through a result set, say with ODBC, and
> use the
> "fetch_array" function for each row. Now, What I want is
> a an array of all
> the rows, so I could then access the "Name" column in Row
> 5 like
> $values[NAME][5].
> How would I create an array that way?
With Oracle use OCIFetchStatement() function
--
Piloteers do it on the road
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]