I own a game, and im trying to create a traveling option that takes time to travel, and to make it work without crons.
Ive been going crazy for the past hour trying to get it to work somehow, and this is the current setup I have:
$r=mysql_fetch_array($q);
$unix=('unix_timestamp()');
$temp=($unix);
$city= ($r['citytime']);
$TTime=($temp + $city);
mysql_query("UPDATE users SET money=money-{$r['citycost']},destination={$_GET['to']},travTIME=$TTime WHERE userid=$ir['userid],$c);
Ive tested it alot, and if I just set $TTime equal to $unix, travTIME is set to the current unix timestamp. However, when I try to add $unix and $r['citytime'] together, travTIME is equal to $r['citytime'].
any ideas here?