Godhand Posted September 15, 2007 Posted September 15, 2007 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; } Quote
Godhand Posted September 15, 2007 Author Posted September 15, 2007 Re: Cyber bank error Yup that was what was wrong. Thank you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.