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. Link to comment https://forums.phpfreaks.com/topic/178068-solved-adding-post-count/ 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'"); Link to comment https://forums.phpfreaks.com/topic/178068-solved-adding-post-count/#findComment-938913 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. Link to comment https://forums.phpfreaks.com/topic/178068-solved-adding-post-count/#findComment-938917 Share on other sites More sharing options...
MySQL_Narb Posted October 18, 2009 Author Share Posted October 18, 2009 Nvm. Link to comment https://forums.phpfreaks.com/topic/178068-solved-adding-post-count/#findComment-938918 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.