I'm trying to accomplish something that just seems like it should work. I'm obviously just too close to the problem...
I have two tables the first table contains a list of sites:
siteid, title, url, active
1,Bob,www.bob.com,1
2,Pete,www.pete.com,0
The second table contains a list of users of a site:
email, sitenumber
jim@hhh.com,1
bob@hhh.com,2
pete@hhh.com,1
What I am attempting to do is count the number of users in table 2 and check the site the user belongs to is active (1) in table 1, the ultimate goal is to show a listing of the most popular active sites... HELP!?! Thanks!