I am currently trying to insert a 0 value into a single field. The value is originally set to 1 and I would like to set it to its default value of 0. How would I go about doing that?
The code I have works for other things, but I simply want to change the field of online1 to 0 in the database table. This is what I have:
mysql_query("UPDATE `users` SET `online1` = 0 WHERE `id` = '".$_SESSION['uid']."' ");