469,622 Members | 1,462 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

Using PHP to discover mysql database tables

I have a web program where I want to connect to my database and
discover the tables within the database. Then select a table and
discover the column names, their types, and lengths.

Thanks in advance.
Braden Bowers
Jul 19 '05 #1
3 2311
Braden Bowers wrote:
I have a web program where I want to connect to my database and
discover the tables within the database. Then select a table and
discover the column names, their types, and lengths.


See this page for those and many other things. I also suggest you to
study the manual more, because it actually gives you answers faster than
anyone in here, if you just know how to search.

http://www.php.net/manual/en/ref.mysql.php

These are propably the functions that you are looking for:
mysql_list_fields()
mysql_list_tables()

Jul 19 '05 #2
Braden Bowers wrote:
I have a web program where I want to connect to my database and
discover the tables within the database. Then select a table and
discover the column names, their types, and lengths.


See this page for those and many other things. I also suggest you to
study the manual more, because it actually gives you answers faster than
anyone in here, if you just know how to search.

http://www.php.net/manual/en/ref.mysql.php

These are propably the functions that you are looking for:
mysql_list_fields()
mysql_list_tables()

Jul 19 '05 #3
Braden Bowers wrote:
I have a web program where I want to connect to my database and
discover the tables within the database. Then select a table and
discover the column names, their types, and lengths.


See this page for those and many other things. I also suggest you to
study the manual more, because it actually gives you answers faster than
anyone in here, if you just know how to search.

http://www.php.net/manual/en/ref.mysql.php

These are propably the functions that you are looking for:
mysql_list_fields()
mysql_list_tables()

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by James | last post: by
reply views Thread by Campbell's List | last post: by
6 posts views Thread by jacob nikom | last post: by
reply views Thread by Braden Bowers | last post: by
9 posts views Thread by elyob | last post: by
39 posts views Thread by Mairhtin O'Feannag | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.