Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Conexao{
- private $host = 'localhost';
- private $db = 'my_db';
- private $user = 'root';
- private $pass = '';
- public function __construct( ){
- $pdo = new PDO('mysql:host='.$this->host.';dbname='.$this->db,$this->user,$this->pass);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement