I am storing quotes in a database, now I want to make a quote of the day generator (not a random !), how is this done ?
I have got this:
$ret= mysql_query("SELECT kwoot FROM kotd where uid=$number ") or die(mysql_error());
and $number should be different for each day, but in between 0 and mysql_num_fields of the table
Simple said, it should do +1 every day, and when it reaches the limit, it goes back to 0
I would prefer and option without adding another table to the database or so ...
Maybe store the $number var. in a file, I don't really know, can someone help me ?