maxhugen
Posts: 272
|
| Posted: 12/14/2008, 8:04 PM |
|
Does anyone know if there are equiv functions to:
- mysql_list_fields
- mysql_num_fields
I'm trying to construct a csv format table export function.
MTIA
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
datadoit
|
| Posted: 12/15/2008, 11:01 AM |
|
Max I think you can reference these functions after you've created your
connection. Something like:
$db = new DBConnection1();
$db->query(yada yada);
mysql_list_fields($db);
Untested.
|
|
|
 |
maxhugen
Posts: 272
|
| Posted: 12/15/2008, 4:01 PM |
|
Many thanks!
While searching for the correct syntax, it turns out that mysql_list_fields has been deprecated in favour of "issuing an SQL SHOW COLUMNS FROM table [LIKE 'name'] statement instead."
(ref: http://au.php.net/mysql_list_fields)
Cheers
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
|