Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. //host, username, passwd, dbname, port
  2. $db = new mysqli ("localhost", "root", "", "dbname", 3306);
  3. if ($db->connect_error) throw new Exception ('Connect Error ' . $this->_mysqli->connect_errno . ': ' . $this->_mysqli->connect_error);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement