PEAR DB problem

From: Date: Tue, 01 Oct 2002 16:03:39 +0000
Subject: PEAR DB problem
Groups: php.general 
Request: Send a blank email to php-general+get-118385@lists.php.net to get a copy of this message
Hi, I'm a bit new to mySQL. I got my program working fine locally, but it doesn't work when I upload it to my ISP. db.php and pear.php couldn't be found on my server when I first ran it. I uploaded them, but could that be part of my problem? The following code is returning "DB Error: not found": $database_address = "mysql://user:pwd@sandbank.zetnet.co.uk/dbname"; require_once('DB.php'); $c_db = DB::connect($database_address); if(DB::iserror($c_db)){ die($c_db->getMessage()); } Peter

« previous php.general (#118385) next »