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. 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 . . . 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
Archived
This topic is now archived and is closed to further replies.