|
-
Feb 20th, 2004, 10:47 AM
#1
Thread Starter
Stuck in the 80s
[Resolved] Grab Field Information from Table
ober5861's thread reminded me of a problem I'm going to have soon.
For a program I'm working on, when it updates, it checks the previous version and then addes new database stuff/modifies the database accordingly.
However, I think I'd be much easier to check just the database and compare it to what the newest version needs, and update.
So, is there a way that I can get all the fields from a table, and even see their size, default value, etc?
Last edited by The Hobo; Feb 20th, 2004 at 10:53 AM.
-
Feb 20th, 2004, 10:52 AM
#2
Thread Starter
Stuck in the 80s
Nevermind, I should have checked out the manual before posting.
The mysql_fetch_field() function seems to be what I need.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|