I have got my DB application running quite nicely locally but I'm having no success when I upload it.
At first it didn't work because it couldn't find the includes, but I uploaded db.php and pear.php, which weren't present on my server.
The problem now is that it says "DB Error: not found". I could be specifying the DB address incorrectly because I am unsure of how that works. This is what I am trying:
$database_address = "mysql://username:password@sandbank.zetnet.co.uk/dbname";
require_once('DB.php');
$c_db = DB::connect($database_address);
if(DB::iserror($c_db)){
die($c_db->getMessage());
}
The username, password, dbname and server address were all provided by my ISP. The database exists because I can change it with phpMyAdmin.
Sorry if I'm just being stupid, but I would appreciate any help.
Peter