i have a db abstraction class... which i use for TWO db's, so i am not extending the db class because i need to use two copied of the class, one for db A and one for db B
anyways...
class loginclass {
would be my class
and the constructor would be like
function loginclass(&$db) {
global $form_idnum;
$this->dbclass = $db;
$this->form_idnum = $form_idnum;
}
the problem is in code like
function dataid($id) {
//if record not found
if($this->dbclass->query("select num, id, pass, temppass, level "
."from id{$this->form_idnum} where id = '$id'") < 1) {
return 0;
}
gives an error on $this->dbclass->query
how should i be doing $this->dbclass->query
any help would be greatly appreciated
thanks