mercredi 7 février 2018

random load of all rows in a loop with no duplication in php

i have a while loop that loads data from a table row into a div. after one row it loops and loads another row into a duplicate div and so on.

now i want this loop to select rows at random but have exhausted all rows by the end without duplication.

I have rows: 1 2 3 4 5

I want(random order) rows: 3 2 5 1 4

basically load all rows but in random. I am using php




Aucun commentaire:

Enregistrer un commentaire