RE: [PHP] field types
| From: | Joao Prado Maia | Date: | Tue, 23 Jan 2001 20:39:48 +0000 |
| Subject: | RE: [PHP] field types | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36261@lists.php.net to get a copy of this message | ||
On Tue, 23 Jan 2001, Boget, Chris wrote:
> 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.
>
Actually he did a "SHOW FIELDS FROM $tableName". It looks like it's some
sort of alias to "DESC $tableName", since it shows pretty much the same
data.
Joao
--
João Prado Maia <jpm@phpbrasil.com>
http://phpbrasil.com - php com um jeitinho brasileiro