Re: Help INSERTing to MySQL
| From: | Philip Olson | Date: | Sat, 24 Feb 2001 02:40:53 +0000 |
| Subject: | Re: Help INSERTing to MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41425@lists.php.net to get a copy of this message | ||
> If I knew I could get answers that easy here, I woudn't have worked on this
> for 20 hours :-)
>
> THANKS!!!!
>
> btw, field one is an ID field set to auto increment, how can I insert that
> if I don't know what it is?
In this case use NULL as the value for id and it'll auto increment nicely.
Using a blank '' will work too. Regarding use of NULL, it's NULL and
not 'NULL'.
Regards,
Philip