Menu
I am preparing to implement profiles for users. So here is the scoop.
Four things have to happen here:
Select all the fields in a record (for later display)
group all the results by an ID number (to ensure no repeats)
count how many views for each ID Number
only return two top ID’s with most views
the fields in p_page there are more fields in the DB but these I need for display. (mock up).
id(AutoInc), Name, Views, pic, url
so basically whichever 2 “id” have the most “Views” will return as the result. Anyone have any ideas?
thanks in advanced.