This example illustrates how to fetch random data from database table.
In this example we create select statement with ORDER BY RAND() clause. The RAND() clause is used to fetch data from table randomly. The output display on the browser as below, when refresh the browser data fetched randomly from table.
Source Code of sql_random.php
Posted on: December 10, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles