$query = "INSERT INTO MYTABLE (MYVARIABLE)
VALUES(NULL)";

I think.


--- Michael Ryan Byrd <[EMAIL PROTECTED]> wrote:
> So I want to insert a NULL value into a column of a
> MySQL table from my PHP
> script:
> 
> Do I 
> 
> $myVariable=NULL;
> 
> or
> 
> $myVariable='';
> 
> (or either?)
> 
> $query = "INSERT INTO MYTABLE (MYVARIABLE)
> VALUES('$myVariable')";
> $result=mysql_query($query) or die ("oops!");
> 
> 
> Ideas?
> 
> 
> ____________________
> BYU Unix Users Group 
> http://uug.byu.edu/ 
>
___________________________________________________________________
> List Info:
http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list


=====
-----------------------------
Adrian Esteban Madrid
HyperXMedia, Developer
================

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to