Re: output the schema
| From: | Richard Lynch | Date: | Wed, 08 Aug 2007 02:35:51 +0000 |
| Subject: | Re: output the schema | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260389@lists.php.net to get a copy of this message | ||
On Fri, August 3, 2007 6:34 am, Richard Heyes wrote:
>> I reword my last post.
>>
>> I want to take the result and generate the field info to the screen
>> e.g
>
> Well, if you're using MySQL you could use either "DESC <table>;" or
> "SHOW CREATE ...". But you can't really generate the schema from a
> result set.
Yes you can:
http://php.net/mysql_field_name
and related functions
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?