I added some stuff along these lines 3 weeks ago:
http://viewcvs.php.net/viewcvs.cgi/pecl/pdo/pdo_stmt.c.diff?r1=1.47&r2=1.48
+/* {{{ proto int PDOStatement::columnCount()
+ Returns the number of columns in the result set */
+/* {{{ proto array PDOStatement::getColumnMeta(int $column)
+ Returns meta data for a numbered column */
The returned array contains the column name, len, precision etc.
Needs documenting, and also needs driver support (I think only sqlite
and mysql drivers work with this for now).
--Wez.
On Fri, 22 Oct 2004 11:37:23 +0200, Lukas Smith <[EMAIL PROTECTED]> wrote:
> How about some stuff along the lines of mysql_field_name() etc?
>
> Would be nice to have introspection into the structure/metadata of
> resultsets.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php