PHP Tips Getting a random row (req. MySQL 3.23+) By Vincent on August 22, 2000 If you need to fetch a random row from a table using MySQL version 3.23 or newer: select * from your_table order by rand() limit 1; Note this does not / may not work with MySQL version older than 3.23. Related Results via Envato Market Related Content Redirecting on Page Not Found (404) Session hijacking Configuring two MySQL servers on the same physical server Generating Printer Friendly Pages Easy way to read database data using fopen() Convert Text into Multidimensional Array Getting Text Area With Click Of a Button Put values to HTML object from PHP variables dynamically load graphic to flash movie…. Use of implode() and explode() in formatting text/keywords used in search