mardi 24 novembre 2015

Select one of the 3 lowest values randomly in MySQL

I would like to display first 3 photos of the car randomly and I don't want to get every time the same car picture. One of the first three photos should be displayed because I don't want 15th photo of car boot shown on the first page. So I have ordering column which looks like for instance 11,12,18,24,66,88,99. I would like to display randomly 11,12 or 18 photo. Any idea?




Aucun commentaire:

Enregistrer un commentaire