'mysql', 'host' => 'localhost', 'username' => 'root', 'password' => 'xxx', // change to real password! 'database' => 'test', 'charset' => 'utf8', )); /* connects to ODBC dibi::connect(array( 'driver' => 'odbc', 'username' => 'root', 'password' => '***', 'database' => 'Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\\Database.mdb', )); */ /* connects to SQlite dibi::connect(array( 'driver' => 'sqlite', 'database' => 'mydb.sdb', )); */ /* connects to PostgreSql dibi::connect(array( 'driver' => 'postgre', 'string' => 'host=localhost port=5432 dbname=mary', 'persistent' => TRUE, )); */ // check status if (!dibi::isConnected()) { echo 'dibi::isConnected(): Not connected'; echo "
\n"; } else { echo 'Connected'; } ?>