Oo-Savage-oO Posted December 21, 2010 Posted December 21, 2010 I get this problem img { border: medium none; } Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/******/public_html/header.php on line 132 This is the code if($rm['item_on']== 0 && $rm['attack_on']== 1) { $usa=$_SESSION['mission_attack']; $aa=mysql_query("SELECT * FROM missions WHERE id=".$ir['mission']." AND attack_value=".$_SESSION['mission_attack']).$c; if(mysql_num_rows($aa)) Quote
Rasheed saeed Posted December 21, 2010 Posted December 21, 2010 if($rm['item_on']== 0 && $rm['attack_on']== 1) { $usa=$_SESSION['mission_attack']; $aa=$db->query("SELECT * FROM missions WHERE id=".$ir['mission']." AND attack_value=".$_SESSION['mission_attack'].""); if(mysql_fetch_row($aa)) { } Quote
Lithium Posted December 21, 2010 Posted December 21, 2010 $aa=mysql_query("SELECT * FROM missions WHERE id=".$ir['mission']." AND attack_value=".$_SESSION['mission_attack'])."",$c); Quote
Rasheed saeed Posted December 21, 2010 Posted December 21, 2010 Edited my post. Lithium you have an open bracket there. :L 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.