it took me ages to find out how to make a viewing system where it edits the mysql view table +1 every time someone visits that link, now i wish to retrieve a list of objects based on the most amount of views if someone could help me it would be really helpful thanks
If you provide more details about the table your are using, we can figure out something.. mysql_query("SELECT nbviews FROM yourtable"); PHP: assuming that you are updating the nbviews column each time the page is displayed: mysql_query("UPDATE yourtable SET nbviews=nbviews+1"); PHP: