Oo-Savage-oO Posted December 21, 2010 Share 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 Link to comment Share on other sites More sharing options...
Rasheed saeed Posted December 21, 2010 Share 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 Link to comment Share on other sites More sharing options...
Lithium Posted December 21, 2010 Share Posted December 21, 2010 $aa=mysql_query("SELECT * FROM missions WHERE id=".$ir['mission']." AND attack_value=".$_SESSION['mission_attack'])."",$c); Quote Link to comment Share on other sites More sharing options...
Rasheed saeed Posted December 21, 2010 Share Posted December 21, 2010 Edited my post. Lithium you have an open bracket there. :L Quote Link to comment Share on other sites More sharing options...
Oo-Savage-oO Posted December 22, 2010 Author Share Posted December 22, 2010 Thanks guys it works 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.