Inserting NULL?
| From: | Jeff Oien | Date: | Fri, 03 Aug 2001 17:03:13 +0000 |
| Subject: | Inserting NULL? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-11041@lists.php.net to get a copy of this message | ||
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