RE: [PHP-DB] arrays
| From: | Alarion | Date: | Tue, 06 Feb 2001 09:21:38 +0000 |
| Subject: | RE: [PHP-DB] arrays | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-6425@lists.php.net to get a copy of this message | ||
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:stas.t@cpstc.com]
Sent: Tuesday, February 06, 2001 12:00 AM
To: php-db@lists.php.net
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: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net