Re: Inserting a NULL value into MySQL via PHP
| From: | Jasper Bryant-Greene | Date: | Fri, 11 Nov 2005 00:09:39 +0000 |
| Subject: | Re: Inserting a NULL value into MySQL via PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225588@lists.php.net to get a copy of this message | ||
benc11@gmail.com wrote:
Is there a way when making a MySQL database entry through a PHP script and there is no data to make the db treat it as NULL?Wouldn't this just work: INSERT INTO myTable (myField) VALUES (NULL) Jasper