Commit 7dabc662 authored by zYne's avatar zYne

updated database connecting docs

parent a300634b
<?php
// using PDO dsn for connecting sqlite memory table
// using PDO like dsn for connecting sqlite memory table
//$dbh = Doctrine_DB::getConnection('sqlite::memory:');
$dbh = Doctrine_DB::getConnection('sqlite::memory:');
// using PDO like dsn for connecting pgsql database
$dbh = Doctrine_DB::getConnection('pgsql://root:password@localhost/mydb');
// using PEAR like dsn for connecting mysql database
//$dbh = Doctrine_DB::getConnection('mysql://root:password@localhost/test');
$dbh = Doctrine_DB::getConnection('mysql://root:password@localhost/test');
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment