MySQL Forums
Forum List  »  PHP

Re: How do you dynamically add additional variables to a PDO SQL query?
Posted by: Simon Lewis
Date: November 14, 2019 06:07AM

Hi Peter
I did reply but not sure if it went through.

I can do a query where x = y, but what if 'sometimes' you need c=d or maybe h=k. Basically, it needs to 'build' the query based on what filters they have selected to use.

Sometimes they might just want to filter on those that have a high Instagram following, but at others, it might be a high instagram, plus those in London.

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.