Results 1 to 2 of 2

Thread: [Resolved] Grab Field Information from Table

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    [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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Nevermind, I should have checked out the manual before posting.

    The mysql_fetch_field() function seems to be what I need.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width