Russell P Jones wrote:
How would one cycle through and get all of the column names in a mysql
table?

say that i have...

id | title | name | description
1  | MR.   | russ | age XX height XX
2  | MRS.  | jan  | age XX height XXX


and I want to print out the 4 column names...

how would one accomplish this?

Either parse the results of a "DESC tablename" query or use the mysql_list_fields() function.


--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com



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



Reply via email to