Hi php users!
I have this simple query to mysql database:
$query = "SELECT MIN(id) AS id FROM ngo";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result)){
echo "$row[name]";
}
I need to display that same $row[name] during 24 hours.
After 24 hours go to the database and get the next id from the same table.
Let´s suppose I have only 3 ID´s. That mean´s on the fourth day the first ID will be displayed again, and so on.
How do I do that ?
Thanks for any help!