I have a function on my site where people can vote on photos. Everytime someone click the vote-button my script adds a row in a table (mysql).
Each row looks like this: (Table name = likes)
id --------- userId --------- photoName --------- date
1 ----------- 21 -------------- 34234 ----------- 20100101
How do i find the top 10 photos that people has been voting on? I tried "SELECT TOP 10 photoName FROM likes" but that didnt work...