Top "Pdo" questions

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

PDO::fetchAll vs. PDO::fetch in a loop

Just a quick question. Is there any performance difference between using PDO::fetchAll() and PDO::fetch() in a loop (for …

php mysql pdo fetch
PHP error: "Cannot pass parameter 2 by reference"

I just need help on this PHP error which I do not quite understand: Fatal error: Cannot pass parameter 2 by …

php mysql pdo mysqli
PDO error: " SQLSTATE[HY000]: General error " When updating database

I am getting an error when updating a database using PDO. I am new to PDO so maybe the problem …

php pdo
Can PHP PDO Statements accept the table or column name as parameter?

Why can't I pass the table name to a prepared PDO statement? $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1…

php pdo
PDO: MySQL server has gone away

I have a script that does a lot of legwork nightly. It uses a PDO prepared statement that executes in …

php mysql pdo
Error on creating connection to PDO in PHP

Today, I removed and reinstalled the latest version of lampp in order to move to php 5.30, and suddenly a very …

php pdo lampp
How to make PDO run SET NAMES utf8 each time I connect, In ZendFramework

How to make PDO adapter run SET NAMES utf8 each time I connect, In ZendFramework. I am using an INI …

php zend-framework pdo zend-db-table
PDO Connection Test

I am writing an installer for one of my apps and I would like to be able to test some …

php mysql pdo
How to bind parameters to a raw DB query in Laravel that's used on a model?

Re, I have the following query: $property = Property::select( DB::raw("title, lat, lng, ( 3959 * acos( cos( radians(:lat) ) * cos( radians( …

php mysql pdo laravel laravel-4
Symfony 2 SQLSTATE[HY000] [2002] Connection refused Error

I get an error like database operations using Symfony2. SQLSTATE[HY000] [2002] Connection refused parameters.yml parameters: database_driver: pdo_mysql …

symfony pdo doctrine dbal