RE: Kritter Kingdom
Just had to change givemoney.php2 to givemoney2.php in the givemoney.php code and it was good to go for the form -- -
changed "cash" to "money" for the second file-- but it isn't taking from the logged in user, and giving to the intended user.
Hmm ... not sure what is the matter .... ?
So close! :D
Now it is giving me an error, right about:
$cashs = $cash - $gm;
$cashs2 = $cash2 + $cash;
if($gm !> $cash){
$query = "UPDATE ".$prefix."users SET cash='".$cashs."' WHERE username='".$loggedinname."'";
mysql_query($query);
$query = "UPDATE ".$prefix."users SET cash='".$cashs2."' WHERE username='".$user."'";
|