Re: [PHP-DB] preg_replace and database

2005-02-21 Thread Petar Nedyalkov
On Sunday 20 February 2005 00:52, Özgür Odabasi wrote: > hi all, > > I have trouble with preg_replace and querying database, > my code is below, > > include("h/h.php"); > > function getImgAttributes($id){ > $dsn = array( > 'phptype' => "mysql", > 'hostspec' => "localhost", > 'databas

[PHP-DB] preg_replace and database

2005-02-19 Thread Özgür Odabasi
hi all, I have trouble with preg_replace and querying database, my code is below, function getImgAttributes($id){ $dsn = array( 'phptype' => "mysql", 'hostspec' => "localhost", 'database' => "db", 'username' => "root", 'password' => "pass" ); $myDbc = DB::connect($dsn);

[PHP-DB] preg_replace and database

2005-02-19 Thread Özgür Odabasi
hi all, I have trouble with preg_replace and querying database, my code is below, function getImgAttributes($id){ $dsn = array( 'phptype' => "mysql", 'hostspec' => "localhost", 'database' => "db", 'username' => "root", 'passw