found somting this:::::
class f_db {
var $lid = 0;
var $qid = 0;
var $row;
var $record = array();
var $error = '';
var $errno = '';
var $db_host = 'localhost';
AMEND
var $db_name = 'root'; shld be name of dbase .
var $db_user = ''; put root in here
var $db_pass = ''; put passwd or leave blnk, yr preference.....
FINISH AMEND
function f_db($dbvars = '') {
if (empty($dbvars)) {
global $dbvars;
}
THE AMENDMENTS will now correspond these 4 lines , below.
$this->db_host = $dbvars['host'];
$this->db_name = $dbvars['name'];
$this->db_user = $dbvars['user'];
$this->db_pass = $dbvars['pass'];
}
one tip is to strip out all the above section , thats the connection bits we amended and put them into an config.inc / php file.
will save on time to construct for each diff dbase connection and help with coding, try it out after wards.
😉 hope that helps, sorry about the time getting bak 2 yer