Re: Tables etc .....
| From: | Jason Wong | Date: | Fri, 11 Apr 2003 19:43:06 +0000 |
| Subject: | Re: Tables etc ..... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27028@lists.php.net to get a copy of this message | ||
On Saturday 12 April 2003 03:28, Chris Payne wrote:
> Does anyone have any example code of how to get column names from a mysql
> table without knowing how many columns there are? Basically what I need to
> be able to do is to display the contents of a database without knowing the
> column names as i'm trying to write something to manage my databases and
> i'd rather try it myself rather than use phpmyadmin all the time as you
> don't learn anything that way.
mysql_list_tables()
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
Familiarity breeds contempt -- and children.
-- Mark Twain
*/