Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    Try this instead:

    $current_user = wp_get_current_user();
     if ($current_user != 0) {  // if user is logged in
        $user_login = $current_user->user_login;
        $bd->query (
            "DELETE FROM  wp_cf7dbplugin_submits
             WHERE  field_name =  'Submitted Login'
             AND  field_value =  '$user_login'");
    }

    $user_login has described as used in filter expressions is not an actually PHP variable. The plugin code parses filter expressions and does a replacement kind of like above.

    Hi Michael, I just installed the plugin (it’s great!) But I’ve found that I am unable to delete entries from my database. I’m using the FS Contact Form. Every time I check entries to delete, or even attempt to delete all this form’s data, it does not work. It doesn’t delete any entries. Your help would be appreciated. Thanks!

    Plugin Author Michael Simpson

    (@msimpson)

    I’m not able to reproduce this behavior. The problem could be a corrupted index in the DB. If you can log into your DB in PHPMyAdmin, run the command
    repair table wp_cf7dbplugin_submits

    Please let me know if that fixes it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Contact Form 7 to Database Extension] Delete data’ is closed to new replies.