MySQL Forums
Forum List  »  PHP

How in PHP 5.2 insert NULL into MySQL 5.0 database with variable value?
Posted by: condor
Date: November 28, 2006 02:21AM

I'm use this construction:
<?php
...
"INSERT into MyTable values ('$id', NULL)".
...
?>
but I need to use this construction:
<?php
...
"INSERT into MyTable values ('$id', '$Var')".
...
?>
What value has got $Var to insert NULL into database?



Edited 2 time(s). Last edit at 11/28/2006 02:25AM by condor .

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.