Jump to content

PHP/Mysql not inserting null values!


slate

Recommended Posts

Figured it out myself...

There\'s a bug in mysql (according to mysql.com) so I have to do this:

 

$valsToInsert = \"\";

 

if ($point_id != \"\")

{

$valsToInsert = $valsToInsert . \"\'$point_id\'\";

}

else

{

$valsToInsert = $valsToInsert . \"NULL\";

}

 

for each $string i need to check it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.