> include 'db.php';
> $db = DB::connect($dsn);
> $strSQL = "SELECT * FROM {Table}";
> $row = $db->getRow($strSQL, DB_FETCHMODE_ASSOC);
>
> $field_names = array_keys($row);
>
> Iterate $field_names for the field names from the table.  This should work for
> any database that PHP can use.

Just a word of caution:

May be true as long as the column (filed) is not an aggregate (for ex SUM(), MAX(), 
isnull(), etc, etc) and do not miss the AS
keyword.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to