hunter Posted January 18, 2007 Posted January 18, 2007 i having a problem figuring out why i can send out money my my bussiness mod function bank() { global $ir,$c,$userid,$h,$bdata; if($_POST['user']) { $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."; exit; } $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. >Back "; } i think its missing like a send feature or what not can anyone help thanks in advance Quote
Revolution Posted January 19, 2007 Posted January 19, 2007 Re: coding question whats the problem? any output error messages? Quote
hunter Posted January 19, 2007 Author Posted January 19, 2007 Re: coding question When the page is up theres no way to send the item under the info its blank Quote
rfw2003 Posted January 22, 2007 Posted January 22, 2007 Re: coding question you need to add the form to your code, so that it will have a place to input the information 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.