Click to See Complete Forum and Search --> : how do i get table attributes? mysql


DARTHTAMPON
01-25-2004, 10:58 PM
ok now i have designed a database and am now looking for a way to impliment a web-script that reads a table and returns the names of fields, size, datatype, and wearther or not the field is requiried. Also looking to impliment a image upload web-script so any adeas about that would be greatly appreciated. Using mysql

john

crh3675
01-26-2004, 07:01 AM
For what database?

the PHP function:

mysql_fetch_field ( resource result [, int field_offset])

will do the trick

RTFM at http://us3.php.net/manual/en/function.mysql-fetch-field.php

--Craig