gangstas-conflict Posted March 11, 2008 Posted March 11, 2008 My bank is good, but when i click on deposit the money isnt being taken off the persons hand? any ideas? Quote
shaved92bravada Posted March 11, 2008 Posted March 11, 2008 Re: bank Check your bank under function deposit () and make sure it looks like that. V2 $gain=$_POST['deposit']; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid"); print "You deposited \${$_POST['deposit']} in your account. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; V1 $gain=$_POST['deposit'; $ir['bankmoney']+=$gain; mysql_query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid",$c); print "You hand over \${$_POST['deposit']} to be deposited, [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; Quote
gangstas-conflict Posted March 11, 2008 Author Posted March 11, 2008 Re: bank Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/gangstas/public_html/bank.php on line 58 You hand over $1422962 to be deposited, You now have $1422962 in the bank. > BackYou do not have enough to deposit this amount. Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/gangstas/public_html/bank.php on line 68 You slide $1422962 under the counter. Barb the banker takes your money and stores it. He gives you a receipt that reads: '$1422962 has been added to your account. You now have $2845924 in the bank. Thank you for using our service Your banker for today was Barb Joans' > Back line 58 mysql_query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid",$c); line 68 mysql_query("UPDATE users SET bankmoney=bankmoney+$dep, money=money-{$_POST['deposit']} where userid=$userid",$c); Quote
Godhand Posted March 11, 2008 Posted March 11, 2008 Re: bank seems you tried to customize bank before you knew too much about it. 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.