Viewing 1 replies (of 1 total)
  • Thread Starter rkwynn

    (@rkwynn)

    Nevermind found this by murphy.wong

    you need to update 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).”‘)”);
    }

    located around line 278
    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Error message appears on page’ is closed to new replies.