WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Possible to use wpdb->prepare with partial query strings? (2 posts)

  1. Michelle Panulla
    Member
    Posted 3 years ago #

    Hi!

    I have a search form and the results page builds the query based on the fields the user has filled in. The query is built through several IF statements. Is it possible to use wpdb->prepare on only part of the query (for instance, the WHERE clauses) as I'm building it, instead of using it on the full final query? The final query will vary depending on user input, so it could get very hairy.

    Thanks!

  2. Michelle Panulla
    Member
    Posted 3 years ago #

    Ah, never mind! I figured it out.

Topic Closed

This topic has been closed to new replies.

About this Topic