vendredi 25 août 2017

mysql combining order by random () and order by value --possible?

I want to know if it is possible to fetch random arrays from database but also privileging certain arrays based on a value of an array (order by *** sort of thing) I'll explain myself. I have some posts to display randomly to the users in a php application but I also want to show the popular ones first. I don't know if I was really clear, thanks for your help !




Aucun commentaire:

Enregistrer un commentaire