Jump to content
MakeWebGames

Recommended Posts

Posted

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!

Posted

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

Posted

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?:)

Posted

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

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.

Posted

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:

Posted

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

Posted

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

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