wpdb-update Abfrage funktioniert nicht

Ich habe eine E-Mail-Skript, die sollten das update so bald wie wp_mail hat Ergebnis. Für einige Grund mein Wert wird nicht aktualisiert. Habe ich etwas verpasst? Ich erhalte die E-mail-also die wp_mail funktioniert.

Prost!

$email_result = wp_mail( $to, $subject, $message, $headers );

if( $email_result ){//wp_mail() processed the request successfully
    global $wpdb;
    $table_name = $wpdb->prefix . "wpsc_coupon_codes";
    $coupon_id = $ereminder->ID;

$ereminders = $wpdb->query( $wpdb->prepare("
    UPDATE *
    FROM $table_name
    SET reminder = 1
    WHERE ID = $coupon_id
") );

}

InformationsquelleAutor adnan | 2013-03-03

Schreibe einen Kommentar