RE: [PHP] Re: How to check if a field is auto increment
| From: | Jay Blanchard | Date: | Fri, 26 Jul 2002 12:56:50 +0000 |
| Subject: | RE: [PHP] Re: How to check if a field is auto increment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109706@lists.php.net to get a copy of this message | ||
[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 ... *
*************************************