A
Anonymous
Guest
Hi,
Trying to use PEAR:
B for my connection.
Can anyone point out where I am going wrong please?
Regards,
Mark
Trying to use PEAR:
Can anyone point out where I am going wrong please?
Code:
require_once('DB.php'); // Include the Pear::DB class code
$db = DB::connect('mysql://DB_USER:DB_PASSWORD@DB_HOST/DB_NAME');
if (DB::isError($db)) { die('Unable to connect. '.$db->getMessage()); }
Regards,
Mark