RE: [PHP] Help INSERTing to MySQL

From: Date: Sat, 24 Feb 2001 08:10:21 +0000
Subject: RE: [PHP] Help INSERTing to MySQL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41434@lists.php.net to get a copy of this message
0 also works for AUTO_INCREMENT fields... > -----Original Message----- > From: Philip Olson [mailto:philip@cornado.com] > Sent: Friday, February 23, 2001 18:41 > To: Clayton Dukes > Cc: php-general@lists.php.net > Subject: Re: [PHP] Help INSERTing to MySQL > > > > > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#41434) next »