RE: [PHP] field types
| From: | Boget, Chris | Date: | Tue, 23 Jan 2001 20:29:39 +0000 |
| Subject: | RE: [PHP] field types | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36257@lists.php.net to get a copy of this message | ||
> If you have phpMySql, take a look at the file:
> /mysqladmin/tbl_properties.php
> That code is doing something to return the type of the field. It's a
> little hard to follow so I don't know exactly how he's doing it and
> unfortunately, didn't have the time to decipher. :p However, I'm
> sure if you sat down with it for a while, you'd figure out how he
> did it.
Never mind, I see how he did it. He runs the following query:
"SELECT FIELDS FROM $tableName"
Where '$tableName' is your table (obviously) and he parses the result
to get all the information.
HTH
Chris