MySQL

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

 



Hi all,

Please tell me how to send a null string to be inserted in a MySQL database.

If I do something like:

$string = null;

mysql_query("insert ignore into table(field) values($string)");

It gives me an error.

In fact, I have multiple fields to insert, and the error just tell me that
was an error at ... and prints the variables I want to imput and I don't
know what could be the problem.

Do I need to addslashes(), or what else?

Thank you.

Teddy

-- 
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