Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //host, username, passwd, dbname, port
- $db = new mysqli ("localhost", "root", "", "dbname", 3306);
- 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