ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

need urgent help!! Warning: mysql_num_rows()

February 20, 2011 10:48am

Subscribe [1]
  • #1 / Feb 20, 2011 10:48am

    Dominik Lechner

    5 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!

  • #2 / Feb 22, 2011 12:21pm

    Greg Aker

    6022 posts

    Have a look at line 276 of your template.

    -greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases