note 17573 rejected from function.mysql-field-flags by zak
| From: | zak@php.net | Date: | Sat, 15 Dec 2001 03:49:46 +0000 |
| Subject: | note 17573 rejected from function.mysql-field-flags by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22837@lists.php.net to get a copy of this message | ||
mysql_field_flags() seems useless.
After much time lost tinkering with it, I finally got what I needed (field type) with the following:
$result=mysql_query("show columns from tablename like 'columnname'");
$object=mysql_fetch_object($result);
echo $object->Type;
Pardon my ignorance, but what excactly is mysql_field_flags _supposed_ to do again??? All it ever
did for me was "not_null" no matter what I tried.
-David Rose