MySQL Forums
Forum List  »  PHP

Re: How do you dynamically add additional variables to a PDO SQL query?
Posted by: Simon Lewis
Date: November 20, 2019 02:24PM

A 'compute engine'?
Sorry to sound funny, but this seems so overly complicated for what we need.

We just need to compile the variables somehow. Then if a variable is populated, add that to the query dynamically.

Never heard of a QBE interface.

Surely if isset($town)) { do something }.
Then in the Execute code you do the same by adding it if it is populated.
Then at the end it runs it.

Or maybe that is what you are saying, in a technical language that I don't understand?

Options: ReplyQuote




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.