Jump to content
MakeWebGames

Recommended Posts

Posted

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))
Posted
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)) { }

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