[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, ?php include(h/h.php); function getImgAttributes($id){ $dsn = array( 'phptype' = mysql, 'hostspec' = localhost, 'database' = db, 'username' = root,

[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, ?php include(h/h.php); function getImgAttributes($id){ $dsn = array( 'phptype' = mysql, 'hostspec' = localhost, 'database' = db, 'username' = root, 'password' = pass ); $myDbc =