I am trying to migrate from mysqli procedural to PDO because my website was halfway, half in pdo, and the rest in mysqli procedural, now I want to shi ...
I am trying to migrate from mysqli procedural to PDO because my website was halfway, half in pdo, and the rest in mysqli procedural, now I want to shi ...
I have a linux server CentOS Linux release 8.5.2111 . I'm trying to compile PDO_IBM extension . I have php 7.4. I have installed ibm driver package ...
I am trying to do a str_replace without success.. for some reason the data from MySql isn't working inside the str_replace function... Code to bring ...
How do I remove string after or before space in PHP? I have a string like $string = "Hello World"; The output should be "Hello" How can I do that? ...
I have a database that I've build using PDO, and I am building some database tests using phpunit. However, I need to test some cases involved with pdo ...
I have this sql statement: But I get this error: Where is my mistake??? ...
I've got an issue regarding my UPDATE statement. When I want to update a column, it just doesn't let me to do that. I tried to use a binded value for ...
I have a SQL query of this format: SELECT * FROM table1 t1 LEFT JOIN table2 t2 ON t1.id = t2.id; I would like, for any given SQL SELECT query unknow ...
I am not sure if it is asked before, but the problem is like this. +---------+---------------+------+-----------+ | item_id | name | data |p ...
In Ubuntu 22.04 I am attempting to connect PHP with a DB2 database via the driver pdo_ibm.so I have followed this guide, along with IBM documentation ...
How could this code inserted 0 values to my database? The above code resulted Isn't if even its null when checking $params shouldn't it be empty ...
I get here my code. It works on web and also on mobile, but just through safari/web. If it's opened as a link there is same error. I do not know ho ...
Why the following code prints nothing?: When i insert the row with PDO query(), then it would work, why? ...
When I try to connect php whith the container that has the mysql server I get this error This is the docker compose file: This is the connection ...
Recently I learned that PDO allows to use indexed array with named placeholders, like this: surprisingly, it works, as well as more familiar I w ...
Hello i am trying to build a webapp using oracle DB. So I created connect.php using PDO to access the Oracle database. But i get the message: could no ...
I have the following PostgreSQL (14.6) stored procedure: When I run the following anonymous PLpg/SQL in dBeaver: ... I get the following output: ...
For my database abstraction I want to exclusively rely on PDO parameter markers when using data literals in prepared statements, in order to eliminate ...
Our client has a drupal website, but the host has forced all clients from PHP 7.4 to PHP version 8, causing a PDO fatal error preventing the site from ...
I'm using the following PHP connection file to connect to my SQL Server database. I keep getting this error that says: "SQLSTATE[28000]: [Micro ...