Advertisement
AlaminSakib

Database Connection PHP

Mar 17th, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. <?php
  2.     class Connection
  3.     {
  4.         public $conn;
  5.         public function __construct()
  6.         {
  7.             $this->conn = new PDO("mysql:host=localhost;dbname=myfirsttable","root","");
  8.         }
  9.     }
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement