I have a php sql
script that generates 5 different values from a database everytime that it executes.
I want those values tot change lets say once a month and not everytime the script runs.
My code is:
$sql = "SELECT * FROM table ORDER BY RAND() LIMIT 5";
$query = mysql_query ($sql, $connection) or die (mysql_error());
while(($row = mysql_fetch_assoc ($query))){
echo "<center>".$row['emri']." ".$row['mbiemri']."</center>";
}
Could anyone help me?