SimplytheBest Extract Random MySQL Records In PHP Scripts
Found 1 Extract random MySQL records in PHP scripts
Extract random MySQL records in PHP
To extract a random record from f.e. a MySQL table you can use this sample PHP code to get you going. The snippet uses rand() to generate a random number and LIMIT to select the record from the SQL table.