473,324 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 2405
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James | last post by:
HI, I'm looking for a script that will allow users/admins to have a one click backup solution for a MYSQL Database.. 'BACK DATABASE' button, click and its done... The a restore option, that...
0
by: Campbell's List | last post by:
Hi, I'm completely new to MySql and need help importing tables from Access or Dbase. I am using Dreamweaver MX to create a data-driven web site. With the VPS hosting plan we're on, our remote...
6
by: jacob nikom | last post by:
I would like to create data model for a group of stores. All stores in this group are very similar to each other, so it is natural to allocate one MySQL database per store. Each database is going...
0
by: Braden Bowers | last post by:
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...
1
by: Paradigm | last post by:
Does anyone know how I can use vba in access to run a script that is stored as a file. I can make a connection to mysql database and run sql statements but this sql statement is very long (creates...
9
by: elyob | last post by:
Hi, I'm looking at storing snippets of details in MySQL about what credit cards a business excepts. Rather than have a whole column for Visa, another for Amex etc ... I am looking at having a...
39
by: Mairhtin O'Feannag | last post by:
Hello, I have a client (customer) who asked the question : "Why would I buy and use UDB, when MySql is free?" I had to say I was stunned. I have no experience with MySql, so I was left sort...
14
by: Ben | last post by:
I don't know whether anyone can help, but I have an odd problem. I have a PSP (Spyce) script that makes many calls to populate a database. They all work without any problem except for one...
12
by: mantrid | last post by:
Hello Can anyone point me in the right direction for the way to read a text file a line at a time and separate the fields on that line and use them as data in an INSERT to add a record to a mysql...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.