Page 1 of 1

trouble with NULL value

Posted: Tue Jun 01, 2004 3:14 pm
by matthiasone
How can you insert a NULL value for a field with PHP?

Posted: Tue Jun 01, 2004 3:15 pm
by jason

Code: Select all

<?php
$variable = null;
?>

Posted: Tue Jun 01, 2004 3:18 pm
by matthiasone
inserting the NULL value into a MySQL database from a PHP Script

Posted: Tue Jun 01, 2004 3:19 pm
by feyd
INSERT INTO whatever VALUES(NULL,'something else')