Jump to content
MakeWebGames

Nonstops Lottery Mod (conversion)


-BRAIDZ-

Recommended Posts

Running this through a syntax checker I do not get any errors, you may want to run your code through a php beautifier (find on Google) as you seem to have a lot off white space which could be causing you issues. Also you do not need $h or $q__ry globalised ($h as it is a mccodes functions and $q__ry as you are setting this within the function)

Link to comment
Share on other sites

Could it be the way the queries are set out?

Because if you take notice they are a heap different to RC I've only charge it from $db->query to myself_query.

So it could just be the was they are set out, as RC engines queries are set out as such..

$q_ry = array();
$q_ry = "INSERT INTO `members_items`
VALUES ('NULL',
'".mysql_real_escape_string($item_number)."',
'162',
'".mysql_real_escape_string($payment_qty)."')";
mysql_query($q_ry);
}

 

its nothing to do with the way the query's are you made a mistake when converting

 

mysql_fetch_single
// would need to be changed to
mysql_fetch_assoc
// or you can use
mysql_fetch_row

 

Edited by NonStopCoding
Link to comment
Share on other sites

Still nothing

 

errors i got when running it on rc

Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/nonstopc/public_html/rc/lottery.php on line 25

Warning: number_format() expects parameter 2 to be long, string given in /home/nonstopc/public_html/rc/lottery.php on line 31

Warning: number_format() expects parameter 2 to be long, string given in /home/nonstopc/public_html/rc/lottery.php on line 35

Warning: number_format() expects parameter 2 to be long, string given in /home/nonstopc/public_html/rc/lottery.php on line 36

Link to comment
Share on other sites

  • 2 weeks later...

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