473,397 Members | 2,099 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,397 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 2407
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.