Invalid argument supplied for foreach; PDO

I have seen this and this, but neither of these help my situation, this is why I am knowledgeably opening a question that has been asked before. My code is: …

PDO connection : UTF-8 declaration with SET NAMES / CHARACTER SET?

According to php.net, Stack Overflow and other sources of trust, I can find 4 different ways to set UTF-8 on PDO connection, but can’t find which one is the better to choose: $pdo_db = ‘mysql:host=…

How can I access a MySQL database without using PHP PDO?

I have this script which uses PHP PDO to access the MySQL database, but the problem is my hosting provider has disabled PHP PDO, so now I’m stuck and have no idea how to change this code to access the …

PHP PDO access to MySQL

I went through the process of converting mysql_* code into PDO code. I’ve run it and checked that it works and everything. I just want Stack Overflow’s review of it, to make sure that I’m killing …

Convert MySQL login script to PDO

I’ve written a functional login script using MySQL. However, I’ve now been told that it needs to be done using PDO, and I’ve a functional PDO connection: function getConnection() { $userName = ‘**…

PHP PDO Firebird inserting

I’m new in Firebird but I’d like to write a small script in PHP that reads a CSV file and fills an existing Firebird db with its data. The problem is I don’t really know how to use the autoincrement …

Questions about shifting from mysql to PDO

I have recently decided to switch all my current plain mysql queries performed with php mysql_query to PDO style queries to improve performance, portability and security. I just have some quick …