heey i want to make i table with following records > username,sent,ssms,points,banned
and want to make ssms rest every 24 hours
and want to make ssms rest every 24 hours
/* I don't know everything hehe */
///////////////////lazy ezyyyyyyyyy function///////////
function rest_ssms()
{
$hours_24 = 60*60*24;
$currenttime = time();
$timeout = $currenttime - $hours_24;
mysql_query("UPDATE records SET ssms='0' WHERE time<'".$timeout."'");
}
rest_ssms();
/* I don't know everything hehe */
///////////////////lazy ezyyyyyyyyy function///////////
function rest_ssms()
{
$hours_24 = 60*60*24;
$currenttime = time();
$timeout = $currenttime - $hours_24;
mysql_query("UPDATE records SET ssms='0' WHERE time<'".$timeout."'");
}
rest_ssms();
Comment