EllisLab text mark
Advanced Search
     
need urgent help!! Warning: mysql_num_rows()
Posted: 20 February 2011 11:48 AM   [ Ignore ]
Joined: 2009-02-19
12 posts

hello,

i have a mistake on my site

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mallorc1/public_html/mpcp/core/core.functions.php(634) : eval()‘d code on line 276

in the view source is following code:

core.functions.php(634)

return eval('?>'.$str.'<?php ')


Hope somebody can help!!

/** ----------------------------------------
    /**  Replace variables
    /** ----------------------------------------*/

        
function var_swap($str$data)
        {
                
if ( ! is_array($data))
                
{
                        
return FALSE;
                
}

                
foreach ($data as $key => $val)
                
{
                        $str 
str_replace('{'.$key.'}'$val$str);
                
}

                
return $str;
        
}
        
/* END */ 

The code line 276 is blank!

 
Posted: 22 February 2011 01:21 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-07
6067 posts

Have a look at line 276 of your template.

-greg

 Signature 

gregaker.net | Follow me on Twitter