Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

setup PDO

$dbConnection = new PDO('mysql:dbname=dbtest;host=127.0.0.1;charset=utf8', 'user', 'password');

$dbConnection->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$dbConnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #setup #PDO
ADD COMMENT
Topic
Name
7+7 =