View Single Post
Old 03-15-2008, 12:37 AM  
Danielle
Confirmed User
 
Danielle's Avatar
 
Join Date: Jun 2002
Location: My Coffin
Posts: 1,227
Any mySQL experts around?

I have a table that has these fields

pagename
visitdate
surferIP

I can list raw page visits by doing this.

SELECT pagename, COUNT(*) FROM pagevisits WHERE visitdate >= '$search_date_start' AND visitdate <= '$search_date_end' GROUP BY pagename

What I want to do is list pages by UNIQUE visit.

How would I do that?

Hugs,
Danielle
Danielle is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote