• 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!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Possible to use wpdb->prepare with partial query strings?’ is closed to new replies.