Top "Pdo" questions

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

Doctrine DBAL 2: fetchAll() unnecessary array dimensions

In doctrine DBAL2 when I execute a query like this: <?php $connection = $this->getDatabaseConnection(); $sql = "SELECT page_url …

php pdo doctrine-orm dbal
PHP PDO ODBC connection

we are trying to create a connection with our SQL database trough ODBC in PHP. This is our current script: $…

php pdo odbc qlikview
PHP + PDO + MySQL: how do I return integer and numeric columns from MySQL as integers and numerics in PHP?

I've seen this question repeated a few times on Stack Overflow but none sufficiently explore the problem (or at least …

php mysql macos ubuntu pdo
php cannot check if a PDO result is empty using empty() returns FATAL ERROR

I want to check whether my prepared query has returned empty or not without having to go into a loop. …

php pdo fatal-error
mysql PDO how to bind LIKE

In this query select wrd from tablename WHERE wrd LIKE '$partial%' I'm trying to bind the variable '$…

php mysql pdo bindparam
Use bound parameter multiple times

I'm trying to implement a pretty basic search engine for my database where the user may include different kinds of …

php mysql sql pdo
php PDO insert batch multiple rows with placeholders

I am looking to do multiple inserts using PHP PDO. The closest answer I have found is this one how-to-insert-an-array-into-a-single-mysql-prepared-statement …

php insert pdo bulkinsert
how to connect to the database in openshift application

I did as following MySQL 5.1 database added. Please make note of these credentials: Root User: xxxxxxx Root Password: xxxxxxx Database …

php pdo cloud openshift
After enabling PDO - Error 2002 getaddrinfo failed: Name or service not known

I recently learned about PDO so I changed my php files to fit the format and now I am getting …

php pdo lamp bitnami
Calling stored procedure from PHP using PDO to MSSQL Server using INPUT Paramters

This does not work: $dbh = new PDO("dblib:host=xxxx;dbname=xxx", "xxxxx", "xxxxx"); $sth = $dbh->prepare("{exec wcweb_…

php sql-server pdo fetch sqlsrv