WordPress.org

Support

Support » How-To and Troubleshooting » Delete rows not work wpdb

Delete rows not work wpdb

  • Hi
    I’m trying this way to delete row in table
    I used this to test, but nothing in the table is deleted

    $wpdb->query($wpdb->prepare(“DELETE FROM $wpdb->Seriados WHERE post_id = %d”,$post_id));
    $wpdb->query($wpdb->prepare(“DELETE FROM $wpdb->Seriados WHERE post_id = %i”,2499));

    it does not erase anything according to column : post_id

    what’s wrong with that?

    this is the table structure:
    post_id
    season_id
    episode_id
    episode_value

    http://imm.io/1n0Ir

    sorry my bad english
    sorry if I posted this topic in the wrong place.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Delete rows not work wpdb’ is closed to new replies.
Skip to toolbar