How do I return a random row from the database?
<?php
$query = mysql_query("SELECT name FROM millionsofnames ORDER BY rand() LIMIT 1");
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More mysql PHP Questions
How do I find the ID of a new row added to a table?how can I show an image from mysql?
How do I set a default value for ENUM fields in PHP?
How do I limit the number of rows returned?
My website www.quicheandpie.com has navigation buttons which were added by going to admin/categorylist and adding a category. I can add category = navigation buttons and update them, but I can not delete them. Any ideas how I can find where the info
