Seach

how to select database through oops concept

public function selectdb($dbname)
{
    $this->dbname=$dbname;
if($this->status)
{
    @mysql_select_db($this->dbname);
}
}
you must add class structure before using it create $dbname variable @ prefix used before mysql_select_db for faster execution