CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Equiv MySQL Functions in CCS?

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.