Re: Re: How to check if a field is auto increment
| From: | Mathieu Dumoulin | Date: | Fri, 26 Jul 2002 13:01:56 +0000 |
| Subject: | Re: Re: How to check if a field is auto increment | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109711@lists.php.net to get a copy of this message | ||
ok tahnks, anyway, while i was looking at the php help manual i found
mysql_field_flags which solves my auto-inc problem, but not the default
value anyway, THX
insane
"Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message
news:001001c234a3$e8d1c390$8102a8c0@niigziuo4ohhdt...
> [snip]
> Oh, and also, i need to know how to get the default value...
>
> Btw, i CAN be done, or else, how does phpMyAdmin does it =P
>
> InsaneCoder
> [/snip]
>
> Hey Insane!
>
> Have you looked at the code for phpmyadmin? I was looking around in it the
> other day to find out about a couple of features and the code is pretty
> clear. Just a thought ...
>
> The other thing to do is to use a DESCRIBE TABLE query and then look at
the
> array returned.
>
> HTH!
>
> Jay
>
> "Other than that, Mrs. Lincoln, how was the play?"
>
> *************************************
> * Want to meet other PHP developers *
> * in your area? Check out: *
> * http://php.meetup.com/ *
> * No developer is an island ... *
> *************************************
>
>