halfbaked Posted December 2, 2010 Posted December 2, 2010 Removed due to bugs i didn't see till told of them sorry will re do it then bring back. Quote
Equinox Posted December 2, 2010 Posted December 2, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Change to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
03laceys Posted December 3, 2010 Posted December 3, 2010 Just to explain why you got the error message you did. The member function error you recived was because you was missing $db from the global on line 147. This line. global $ir,$c,$userid,$h; So to fix this error as Equinox did you need to add $db like so. global $ir,$c,$userid,$h,$db; Just so you know how to fix these errors in the future. (On a side note you have posted in the wrong part of the forum just so you know for future reference) Quote
halfbaked Posted December 3, 2010 Author Posted December 3, 2010 Ok thanks you guys that got the error gone and thanks Lacey for the explanation that helped to really appreciate it. Mods please move this to the right forum sorry for posting in the wrong spot. Quote
halfbaked Posted December 3, 2010 Author Posted December 3, 2010 Got it working 100% i'll edit top post so whoever wants to use it they can. Quote
Jordan Palmer Posted December 3, 2010 Posted December 3, 2010 [alertbox]Updated now using php/mysql tags..[/alertbox] Also, May I ask a question? $sql = sprintf("UPDATE users SET bankmoney=bankmoney-{$_POST['wd']}, money=money+{$_POST['wd']} WHERE userid=$userid"); $db->query($sql); Why are you using this when there is no need for that to be there? Two lines doing the exact same job as one line... Quote
halfbaked Posted December 3, 2010 Author Posted December 3, 2010 i had alittle issue getting it to work right. So before i had came and asked for help i was trying anything i could think of to get it going. after i came here got help i didn't want to change anything and mess it up again. Quote
Jordan Palmer Posted December 4, 2010 Posted December 4, 2010 Bug #1 You currently have a loan of $55000 The max you can borrow is $5000 Bug #2 You currently have a loan of $-500000 The max you can borrow is $5000 Easily fixed but theres just two bugs. 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.