MySQL Forums
Forum List  »  PHP

Re: ternary operator inside a query
Posted by: Peter Brawley
Date: February 25, 2015 03:21PM

You may or may not need an if() in the query itself, don't prejudge. Write out the query generation in pseudocode before you try coding it in PHP, and let's see it when it looks right to you.

Options: ReplyQuote


Subject
Written By
Posted
Re: ternary operator inside a query
February 25, 2015 03:21PM


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.