Jump to content
MakeWebGames

Recommended Posts

Posted

I just added my fourth city and decided to test out cyber bank. I got this error

Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/*****/public_html/cyberbank.php on line 82

The code for the couple lines around 82 are the following although the big gap is line 82.

$db->query("UPDATE users SET cybermoney=cybermoney+$gain, money=money-{$_POST['deposit']} where userid=$userid");
print "You hand over \${$_POST['deposit']} to be deposited, 

after the fee is taken (\$$fee), \$$gain is added to your account. 

[b]You now have \${$ir['cybermoney']} in the Cyber Bank.[/b]

[url='cyberbank.php']> Back[/url]";
}
}
function withdraw()
{


global db,$ir,$c,$userid,$h;


$_POST['withdraw']=abs((int) $_POST['withdraw']);
if($_POST['withdraw'] > $ir['cybermoney'])
{
print "You do not have enough banked money to withdraw this amount.";
}
else
{
$fee=ceil($_POST['withdraw']*75/1000);
if($fee > 750000) { $fee=750000; } 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...