try
mysql_query('SET SQL_SAFE_UPDATES=1') or die(mysql_error());
perhaps it will work
in phpmyadmin it does (but only if i enter
SET SQL_SAFE_UPDATES=1;
UPDATE table SET column = column +1
if i do two statements it will still change the table; maybe it works within php)
good luck