Jump to content

forgoten

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

forgoten's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi im tring to connect to a mysql server but i keep geting this error: Connection failed: could not find driver i am using the folowing code to connect: try { $this->DbObj = new PDO( 'mysql:host=' . $this->ConfigObj->Host . ';dbname=' . $this->ConfigObj->DbName, $this->ConfigObj->User, $this->ConfigObj->Pass, array( PDO::ATTR_PERSISTENT => false )); $this->DbObj->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $Excep) { exit('Connection failed: ' . $Excep->getMessage()); } anyone know whats wrong there?.....i used to use the same code befor i moved to a new server so coud use some help...tnx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.