MySQL_Narb Posted October 17, 2009 Share Posted October 17, 2009 How would I make it so everytime someone clicks submit on my form, their row in the database for their post count goes up 1. Quote Link to comment Share on other sites More sharing options...
Alex Posted October 17, 2009 Share Posted October 17, 2009 An example would be like: mysql_query("UPDATE users SET post_count = post_count + 1 WHERE user_id='$id'"); Quote Link to comment Share on other sites More sharing options...
MySQL_Narb Posted October 18, 2009 Author Share Posted October 18, 2009 Oh, thank you. I knew how to update it, just not add numbers. Quote Link to comment Share on other sites More sharing options...
MySQL_Narb Posted October 18, 2009 Author Share Posted October 18, 2009 Nvm. 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.