Jump to content

coding question


Recommended Posts

i having a problem figuring out why i can send out money my my bussiness mod

function bank()


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



$ck=mysql_query("SELECT * FROM users WHERE business={$ir['business']} AND userid={$_POST['user']}",$c);

if(mysql_num_rows($ck)== 0)


print "ERROR!

Either this user does not exist or they are not in your business.";



$user=(int) $_POST['user'];

$cash=(int) $_POST['cash'];

$crys=(int) $_POST['crystals'];

mysql_query("UPDATE users SET money=money+$cash, crystals=crystals+$crys WHERE userid=$user",$c);

mysql_query("UPDATE businesses SET bBANKMONEY=bBANKMONEY-$cash, bBANKCRYSTALS=bBANKCRYSTALS-$crys WHERE bID={$bdata['bID']}",$c);

print "\$$cash and $crys Crystals Given to User : $user.






i think its missing like a send feature or what not can anyone help thanks in advance

Link to comment
Share on other sites

Join the conversation

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

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