pavalache Posted August 6, 2009 Share Posted August 6, 2009 I have the high-low mod from this topic: http://criminalexistence.com/ceforums/index.php?topic=15283.0 After i bet i get this error: Fatal error: Call to a member function mysql_real_escape_string() on a non-object in /home/gamedb/public_html/highlow.php on line 71 line 71: $amount=$db->mysql_real_escape_string($_POST['amount']); Whats wrong? tried both mysql_real_escape_string and real_escape_string and im out of ideas..pls help a noob, thx! Quote Link to comment Share on other sites More sharing options...
Joel Posted August 6, 2009 Share Posted August 6, 2009 Re: High-Low game, need a lil help please. $amount = mysql_real_escape_string($_POST['amount']); $db-> is not needed other than that I do not know... Quote Link to comment Share on other sites More sharing options...
pavalache Posted August 6, 2009 Author Share Posted August 6, 2009 Re: High-Low game, need a lil help please. Thanks Joel, that fixed the problem. +1 Now i get Fatal error: Call to a member function query() on a non-object in /home/gamedb/public_html/highlow.php on line 116 116: $db->query("UPDATE users SET money=$lose WHERE userid=$userid", $c); care to help again?:) Quote Link to comment Share on other sites More sharing options...
PHP Scene Posted August 6, 2009 Share Posted August 6, 2009 Re: High-Low game, need a lil help please. If you're using v1, change it to: mysql_query("UPDATE users SET money=$lose WHERE userid=$userid", $c); if you're using v1, change to: global $db; $db->query("UPDATE users SET money=$lose WHERE userid=$userid", $c); Quote Link to comment Share on other sites More sharing options...
pavalache Posted August 6, 2009 Author Share Posted August 6, 2009 Re: High-Low game, need a lil help please. thanks PHP Scene, that did the trick, was using v2. +1 when i can. Cheers! Quote Link to comment Share on other sites More sharing options...
CrazyT Posted August 6, 2009 Share Posted August 6, 2009 Re: High-Low game, need a lil help please. mysql_query will work with v2 also.... no need to change it Quote Link to comment Share on other sites More sharing options...
PHP Scene Posted August 6, 2009 Share Posted August 6, 2009 Re: High-Low game, need a lil help please. mysql_query will work with v2 also.... no need to change it True, though i use the MySQL class to it's full extent (logging errors, etc), so i prefer to pass all queries through the class. Quote Link to comment Share on other sites More sharing options...
Goku Posted August 6, 2009 Share Posted August 6, 2009 Re: High-Low game, need a lil help please. I got rid of the High-Low game on my site because it totally bloats the economy, P.S. I know its off-topic. :roll: Quote Link to comment Share on other sites More sharing options...
pavalache Posted August 6, 2009 Author Share Posted August 6, 2009 Re: High-Low game, need a lil help please. if you hide the card the dealer shows... there's a 50/50 chance. if you limit the bets even more you've got yourself with a finger killer. everybody will click the bet key all they long till their fingers hurt without winning much and ruining the economy...thats what i think:P Quote Link to comment Share on other sites More sharing options...
Goku Posted August 7, 2009 Share Posted August 7, 2009 Re: High-Low game, need a lil help please. Im just saying it bloated mine, I even tweaked it a little, but still users got alot more out of the game than putting in Quote Link to comment Share on other sites More sharing options...
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.