layoutfx

Registered
Feb 15, 2003
1
0
151
what would the script be for the crontab if the php script was......



if($action == &reset&)
{


echo &Game successfully reset&;
$resetb = mysql_query(&update userdb set fightstoday=0, age=age+1, hp_left=hp, zeni2=zeni2+350, spirit=10, posts=0, days=days-1, weed=weed+1&);
$update_everyone = mysql_query(&update userdb set jailed='N'&);
$update_bannings = mysql_query(&update bannings set days=days-1&);

echo &&p&[&a href=admin.php&Back&/a&]&;

}




?????????
 

SprintSlash

Well-Known Member
Jan 18, 2003
162
0
166
You save the part inside { } into a separate php file, and then just have crontab run that php file.