Skip to content

Tag: pdo

How to set conditions for search in prepared statements?

I am trying to create a site search in prepared statements, Here is my code : Conditions for search This is how I add it to query : Here is my question. How can I use conditions safe way in prepared statements ? Answer You can build up an array of any bind parameters dynamically and then pass this to

PDO query not returning correctly [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 y…

Connect PHP 7.4 to Firebird database: could not find driver

I’m following the docs to connect php to firebird database. I activated the extension in php.ini I restarted apache on xampp, and I copy pasted the code of the docs for testing. when I run the code I get could not find driver what am I missing here? environment: XAMPP with PHP 7.4 Windows 10 Answer The …

Search MySQL query in PHP [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 y…