using mysql_field_type ($id, $i)it returns the datatype. Is there a way that if the datatype is a string i can get it to display char(15) or char(whatever the value is)? Please help.
The example found here :
http://www.php.net/manual/function.mysql-field-type.php
Displays all such information, the one you're wanting here is :
http://www.php.net/manual/function.mysql-field-len.php