I have tried this but not working.
$getPerson = mysqli_query($con,"SELECT * FROM Persons LIMIT 0,15");
shuffle($getPerson)//how to set limit for this?
I have tried this but not working.
$getPerson = mysqli_query($con,"SELECT * FROM Persons LIMIT 0,15");
shuffle($getPerson)//how to set limit for this?
You can use ORDER BY RAND()
with LIMIT 0,4
SELECT * FROM Persons ORDER BY rand() LIMIT 0,4