Jump to content

mysql query error


thara

Recommended Posts

I need to create song's top 10 chart in my web site. Im going to add songs to chart using my downloaded system. I count all downloaded through my eb site. to create my top chart i need to find the download average for each song. I tried to find the average using this query but there was a error.

	$q = "SELECT song_id, song_title, added_date, datediff(now() - interval 7 day, added_date) as date, 
	downloaded/date as average FROM songs ORDER BY downloaded DESC";

 

can anybody help me..

any ideas are appreciated.

thanks..

 

Link to comment
https://forums.phpfreaks.com/topic/251620-mysql-query-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.