Skip to content

Instantly share code, notes, and snippets.

@phalcon
Created April 6, 2013 23:06
Show Gist options
  • Select an option

  • Save phalcon/5328034 to your computer and use it in GitHub Desktop.

Select an option

Save phalcon/5328034 to your computer and use it in GitHub Desktop.
<?php
namespace Phalcon;
error_reporting(E_ALL & E_NOTICE);
try {
$unavailable_database = array('username' => 'non', 'password' => 'hea');
$db = new Db\Adapter\Pdo\Mysql($unavailable_database);
} catch(\PDOException $e) {
echo $e->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment