Jump to content
MakeWebGames

Recommended Posts

Posted

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)

Posted (edited)
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
Posted

 

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

 

Still nothing

Posted

Still nothing

 

 $count = mysql_query("SELECT COUNT(`user`) FROM `lottery_players` AS `players`");  
$amt = mysql_fetch_row($count);

// then change the money_formatter function to the one below.

Tickets Purchased: ".number_format($amt['players'], '')."

 

There is also another one like this in the other functions.

Posted

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

Posted

 

did you even read what i posted? it has the location and the filename

I didn't read it.

I asked where abouts in the style_top.php file because I have placed it in there, and it still returning all zero

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