Im installing a script on my site and i keep getting this error this is the files i have to edit, ive tried to edit it loads of times and i just dont know what im doing, what do i have to edit in here...??
After you instantiate that class you simply have to call the configure method with the required parameters: $db->configure($host, $user, $pass, $database); PHP: (I am assuming your class instance is called $db and your parameters are already defined) And if you don't want to do that then just edit the class variables.. var $host = 'localhost'; var $user = 'username'; var $password = 'bla'; var $database = 'dsds'; PHP: but that's not recommende.
$db = new database(); $db->configure("HOST", "USERNAME", "PASSWORD", "DATABASE NAME"); $db->connect(); if you want formatted code, click here: http://shortwebsite.com/f11469