Commit 38223e4e authored by Nunna Satya Surya Venkat's avatar Nunna Satya Surya Venkat
Browse files

Upload New File

parent 5a2413a8
class db{
private $host = "localhost";
private $dbname = "blood";
private $username = "root";
private $password = '';
protected $con;
public function __construct(){
// new PDO("msql:host=localhost;dbname=messenger", "root","");
$this->con = new PDO("mysql:host=".$this->host. ";dbname=".$this->dbname, $this->username, $this->password );
}catch(Exception $e){
echo "DataBase Connection Problem: ".$e->getMessage();
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment