MySQL Forums
Forum List  »  Newbie

Re: Constructing a multi-table query
Posted by: Peter Brawley
Date: October 24, 2014 10:44AM

Always test queries outside your app development environment before testing them in app context eg

$query = "SELECT term_id FROM wp_terms WHERE name = '" . $answer . "'";
echo $query;

paste what's echoed into the mysql client and see how it runs.

Options: ReplyQuote


Subject
Written By
Posted
Re: Constructing a multi-table query
October 24, 2014 10:44AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.