PHP AND MYSQL DATABASE CONNECTION USING OPPS
<?php
class connection
{
private $host='localhost';
private $username='root';
private $password='';
private $database='opps_mysql';
public function connect()
{
return mysqli_connect($this->host, $this->username, $this->password, $this->database);
}
}
?>
Comments
Post a Comment