Jump to content
MakeWebGames

Recommended Posts

Posted

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]";
Posted

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);

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...