Re: Inserting a NULL value into MySQL via PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



benc11@xxxxxxxxx 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux