i have created a photo sharing system, and i want the viewer to rate them by giving them a hit range from 0-10 based on quality of the picture. atleast 5 of the picture with most vote are displayed on the home page. this should change always.
"select * from TABLE_NAME order by PICTURE_VOTE desc limit 0,5"; This code will select 5 images from DB which get most votes. anything else?