<?php
class dbo{
private $conn;
private $host;
private $username;
private $password;
private $dbname;
function __construct($host,$username,$password,$dbname)
{
$this->host=$host;
$this->username=$username;
$this->password=$password;
$this->conn=mysql_connect($host,$username,$password);
$this->select_db($this->conn);
}