i am trying to make the game reset, i attempted but i KNOW its not right coding
can you help me change it so that it does what i want it to do?
PHP Code:<?php
include('connect.php');
$now = time ($a, $b, $c, $d, $e, $f) ;
$thetime = mysql_fetch_array(mysql_query("select * from time"));
mysql_query("update time set minute=$b, second=$c, day=$d, month=$e, year=$f");
if (a$ > $thetime[hour] ) {
mysql_query("update time set hour=$a");
mysql_query("update km_users set pj=maxpj");
mysql_query("update km_users set hp=maxhp where hp<maxhp");
mysql_query("update km_users set battles=0");
}
?>




Reply With Quote

Bookmarks