Top "Pdo" questions

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

Binding multiple values in pdo

Is there's an easy way of binding multiple values in PDO without repitition ? Take a look at the following code : $…

php pdo bind
What is the advantage of using try {} catch {} versus if {} else {}

I am switching from plain mysql in php to PDO and I have noticed that the common way to test …

php mysql pdo
Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in

My code was working all fine yesterday and today it suddenly just don't want to connect to my database. I …

php mysql pdo
implement LIKE query in PDO

I am running problems in implementing LIKE in PDO I have this query: $query = "SELECT * FROM tbl WHERE address LIKE …

php mysql pdo sql-like
PHP PDO vs normal mysql_connect

Should I use php PDO or normal mysql_connect to execute database queries in PHP? Which one is faster? One …

php mysql pdo
PHP PDO prepared statements

I was told today that I should really be using PDO and prepared statements in my application. Whilst I understand …

php mysql pdo
Are there good tutorials on how to use PDO?

Maybe someone did a tutorial that shows the important thing: Setting everything up and using it with MySQL?

php pdo
Use of PDO in classes

I have a few classes that perform some MySQL queries and prepared statements. However, I am lost in how to …

php mysql pdo prepared-statement
PDO error: SQLSTATE[HY000]: General error: 2031

I'm getting this annoying error and although I have an idea of why I'm getting it, I can't for the …

php mysql pdo prepared-statement
Do SQL connections opened with PDO in PHP have to be closed

When I open a MySQL connection in PHP with just PHP's built-in MySQL functions, I do the following: $link = mysql_…

php sql mysql pdo