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 access the current time with mysql?I need to test database time needed to execute scryp (like 10 000 inputs) with what command i can start measuring time, start scrypt, and then to stop time when scrypt is done and get time resault?
I am unable to make pages for my search result.Below I am giving the code that I am using. Career Search result Yami says
how do i upload an image to database?
How do I find second highest value from a table?
