ryanfilard Posted June 19, 2011 Share Posted June 19, 2011 How do I add 1 each time page is viewed. I use this but it does not work. mysql_query("UPDATE blops SET views = +1 WHERE id = '$idofimg'"); Example: 1 someone views the page 2 another person views the page 3 and so on. Quote Link to comment https://forums.phpfreaks.com/topic/239808-add-1-each-time-page-is-viewed/ Share on other sites More sharing options...
Pikachu2000 Posted June 19, 2011 Share Posted June 19, 2011 . . . SET views = views + 1 WHERE . . . Quote Link to comment https://forums.phpfreaks.com/topic/239808-add-1-each-time-page-is-viewed/#findComment-1231845 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.