How to query random data row by MySQL:
SELECT * FROM table_name ORDER BY RAND() LIMIT 1;
To be able to get random row or rows from database you just need to use RAND() at ORDER BY and after that determine the how many rows you want to get by using LIMIT.






