• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with mysql query

#1
[eluser]megabyte[/eluser]
Trying to create a table that shows the number of users per week for the past 8 weeks.

This is going to get turned into xml for flash charts.

Here's the query, but its throwing errors.

Can anyone maybe point out where I may be going wrong?

Thanks

Code:
SELECT count(users) as user_count FROM (users) WHERE DATE_SUB(CURDATE(),INTERVAL 8 WEEKS) <= created GROUP BY week(created, 0)


Messages In This Thread
help with mysql query - by El Forum - 08-20-2009, 10:24 PM
help with mysql query - by El Forum - 08-21-2009, 02:25 AM
help with mysql query - by El Forum - 08-21-2009, 03:26 AM
help with mysql query - by El Forum - 08-21-2009, 11:49 AM
help with mysql query - by El Forum - 08-21-2009, 12:17 PM
help with mysql query - by El Forum - 08-21-2009, 12:29 PM
help with mysql query - by El Forum - 08-21-2009, 12:34 PM
help with mysql query - by El Forum - 08-21-2009, 12:40 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.