I have this query;
$getsomething = mysqli_query("SELECT a FROM table GROUP BY b ORDER BY rand()");
For some reason, it doesn't work. Am I doing something wrong? How do I randomly display items in a mySQL "GROUP BY" query using php?
Aucun commentaire:
Enregistrer un commentaire