Set MySQL cell to NULL
Posted: Thu Dec 25, 2008 3:21 pm
How do you do it via PHP? I've tried, but the following methods don't work and I'm out of ideas...
Both don't work
Well, with PHP anyways.
In MySQL Query Browser,
UPDATE `accounts` set `salt`=NULL where `name` = 'name';
WORKS.
Code: Select all
$saltQuery = "UPDATE accounts set salt=NULL where name = '$tusername'";Code: Select all
$saltQuery = "UPDATE accounts set salt=(NULL) where name = '$tusername'";In MySQL Query Browser,
UPDATE `accounts` set `salt`=NULL where `name` = 'name';
WORKS.