Re: Inserting NULL?

From: Date: Fri, 03 Aug 2001 17:07:11 +0000
Subject: Re: Inserting NULL?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11042@lists.php.net to get a copy of this message
Try just NULL rather than 'NULL' ----- Original Message ----- From: "Jeff Oien" <jeff@webdesigns1.com> To: "PHP-DB" <php-db@lists.php.net> Sent: Friday, August 03, 2001 6:03 PM Subject: [PHP-DB] Inserting NULL? > I have a variable that is either Yes or No. I would like > NULL to be inserted if it's No. Can I do this? > > if ($variable == 'No') { > $variable = 'NULL'; > } > > then INSERT it. > > Thanks. > Jeff Oien > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#11042) next »