Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter noyhadar

    (@noyhadar)

    I got the same error. I fix it temporarily by updating the sml.php file as below:

    /*
    $exists = mysql_query(“SELECT * FROM “.$wpdb->prefix.”sml where sml_email like ‘”.$wpdb->escape($email).”‘ limit 1″);
    if (mysql_num_rows($exists)<1) {
    $wpdb->query(“insert into “.$wpdb->prefix.”sml (sml_name, sml_email) values (‘”.$wpdb->escape($name).”‘, ‘”.$wpdb->escape($email).”‘)”);
    }
    */
    $exists = $wpdb->get_row(“SELECT * FROM “.$wpdb->prefix.”sml where sml_email like ‘”.$wpdb->escape($email).”‘ limit 1″);
    if (!$exists) {
    $wpdb->query(“insert into “.$wpdb->prefix.”sml (sml_name, sml_email) values (‘”.$wpdb->escape($name).”‘, ‘”.$wpdb->escape($email).”‘)”);
    }

    Hope this help. Thanks.

    Go to sml.php and replace with this your current code.

    This will work 100%

    [ Code redacted, that’s way to much to post here. Please use pastebin.com instead. ]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error: mysql_num_rows() expects parameter 1 to be resource, boolean’ is closed to new replies.