WordPress.org

Forums

[resolved] Execute query in wordpress (2 posts)

  1. Alin Marcu
    Member
    Posted 2 years ago #

    Hi,

    I am unable to delete some rows from wp_options using $wpdb->query:

    $wpdb->query($wpdb->prepare("DELETE FORM $wpdb->options WHERE option_name LIKE %s",'_transient_%'));

    There is no error and I can't figure out what the problem is ...

    Any help will be appreciated.

  2. Alin Marcu
    Member
    Posted 2 years ago #

    Ok now, i think i was too tired, i typed FORM instead of FROM.

Topic Closed

This topic has been closed to new replies.

About this Topic