Top "Pdo" questions

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

PHP PDO - What do $dbh and $sth stand for?

In PDO examples I often find the acronyms $dbh and $sth used. I suppose $dbh stands for "database handle" - …

php pdo coding-style
SQLSRV driver vs. PDO driver for PHP with MS SQL Server

What considerations should I take into account when choosing between SQLSRV driver vs. PDO driver (for PHP with MS SQL …

php sql-server pdo driver
"connection rejected by remote interface" connecting to Firebird 3 with PDO

Try code below, but cause exception - SQLSTATE[HY000] [335544421] connection rejected by remote interface: try { $dbh = new PDO("firebird:dbname=…

php linux pdo firebird firebird-3.0
PDO: How to access Microsoft Access file on Linux?

I have managed to read data of Microsoft Access file (.accdb) on Windows using PDO but I'm having problem getting …

php linux pdo odbc ms-access-2007
Can I use ALTER DATABASE to rename a mysql database?

I am using PDO with PHP to create a new database and then a new user with privileges on that …

php mysql database pdo alter
Error logging, in a smooth way

I've been reading on in particular 'error logging' And I have come up with the function 'error_log' which seem …

php pdo
how safe are PDO prepared statements

Started using PDO prepared statements not too long ago, and, as i understand, it does all the escaping/security for …

php mysql security pdo sql-injection
Confusion between bindValue() and bindParam()?

I am confuse between these two functions Bindvalue() and BindParam() I read on php.net it does not escape % and _, …

php pdo bindvalue bindparam
ERROR:SQLSTATE[42000]: Syntax error or access violation: 1064

I was looking for answer for last 3 hours, and i don't know what to do. Here is the code: function …

sql pdo panic
Enabling PDO OCI

I've tried to install OCI, so I can use new PDO("oci:dbname... After 1,5h of fight I've installed oracle …

php oracle ubuntu pdo oracle-call-interface