One of my PHP functions just not work. Mysql returns success but it doesnt UPDATE column that i want. I really no have idea why that problem exist.
So here is the function that UPDATING it:
function savePhone($phone) {
dbConnect(); $q = "UPDATE site SET phone = '$phone' WHERE id = 0"; $r = mysql_query($q) or die (mysql_error()); if ($r) return $q; else return "error";
}
Here is var_dump-ed example query that works fine when using phpMyAdmin.
'UPDATE site SET phone = '111111' WHERE id = 0'
Im using Apache