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 ? Quote Link to comment Share on other sites More sharing options...
phpSensei Posted March 12, 2008 Share Posted March 12, 2008 Mysql Update? Quote Link to comment 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()); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.