Top "Pdo" questions

PDO (PHP Data Objects) is a data-access abstraction layer (interface) for PHP.

Install pdo for postgres Ubuntu

I am trying to enable the pdo driver for my php installation, but when I runn the command ./configure --prefix=/…

postgresql pdo
How to debug PDO database queries?

Before moving to PDO, I created SQL queries in PHP by concatenating strings. If I got database syntax error, I …

php sql pdo
PDO's query vs execute

Are they both do the same thing, only differently? Is there any difference besides using prepare between $sth = $db->…

php pdo
mysqli or PDO - what are the pros and cons?

In our place we're split between using mysqli and PDO for stuff like prepared statements and transaction support. Some projects …

php mysql pdo mysqli database-abstraction
What is the difference between bindParam and bindValue?

What is the difference between PDOStatement::bindParam() and PDOStatement::bindValue()?

php pdo bindparam bindvalue
ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it

An error suddenly occurred while I was debugging my code. It has this series of errors regarding the connection to …

php mysql pdo wamp
In PHP with PDO, how to check the final SQL parametrized query?

In PHP, when accessing MySQL database with PDO with parametrized query, how can you check the final query (after having …

php mysql pdo sql-parametrized-query
Real escape string and PDO

I'm using PDO after migrating away from the mysql library. What do I use in place of the old real_…

php mysql pdo
php artisan migrate throwing [PDO Exception] Could not find driver - Using Laravel

I have a bad experience while installing laravel. However, I was able to do so and move to the next …

php mysql pdo laravel driver
Checking for empty result (php, pdo, mysql)

Please, can anyone tell me what I'm doing wrong here? I'm simply retrieving results from a table then adding them …

php mysql pdo