I use mysql_fetch_array and return an array with these keys, eg
name, pageviews
I want to go through the array and toss out elements where pageviews are below an arbitrary number, say 50.
I can't do this in mysql because the statement I use is:
select usertable.name, sum(pages.views) as pageviews from where usertable.name=pages.name group by usertable.name order by usertable.name
This will return a list of names in alphabetical order, but I want to throw away the elements that have less than 50 pageviews. I can't see a way to do it in MySQL, is there a simple way to do it in PHP after I get the array?