czukoman20 Posted March 12, 2008 Share Posted March 12, 2008 In a database, i have table users, subtable num_clicks. Is it possible to have a button or something that clears the num_clicks values all to zero for that column ? Link to comment https://forums.phpfreaks.com/topic/95738-setting-a-column-value-to-0/ Share on other sites More sharing options...
phpSensei Posted March 12, 2008 Share Posted March 12, 2008 Mysql Update? Link to comment https://forums.phpfreaks.com/topic/95738-setting-a-column-value-to-0/#findComment-490184 Share on other sites More sharing options...
ohdang888 Posted March 12, 2008 Share Posted March 12, 2008 mysql_query("UPDATE `table` SET `counter`= '0' WHERE `user_id` = '$id' ") or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/95738-setting-a-column-value-to-0/#findComment-490200 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.