Inserting a 'Null' value into my database
Posted: Fri Mar 20, 2009 4:16 pm
Hi,
I want to insert a ‘null’ value into my database in certain situations but I’m not having much luck. When I try to use something like
this basically inserts the word NULL into the database and not the italicised one I’d normally see in PHPMyAdmin.
Can anyone point me to what I need to do?
Thanks
I want to insert a ‘null’ value into my database in certain situations but I’m not having much luck. When I try to use something like
Code: Select all
if(empty($_POST['sheet'])) { $bf = "NULL" ; }Can anyone point me to what I need to do?
Thanks