Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' with pdo

Posted by user260019 on Stack Overflow See other posts from Stack Overflow or by user260019
Published on 2010-03-11T11:02:15Z Indexed on 2010/04/13 14:43 UTC
Read the original article Hit count: 664

Filed under:
|
$db = new PDO('mysql:dbname=xnews;host=localhost;port=' . $LOCAL_DB_PORT, 
          $LOCAL_DB_USER, 
          $LOCAL_DB_PASS, 
          array(PDO::MYSQL_ATTR_INIT_COMMAND =>  "SET NAMES 'UTF8'")
      );

reports:

Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'

Is it renamed?

© Stack Overflow or respective owner

Related posts about php

Related posts about pdo