donate: do not throw error on mysqli warning
[chef.git] / cookbooks / donate / templates / default / db-connect.inc.php.erb
1 <?php
2 $_DB_H = new mysqli('localhost','donate','<%= @passwords['database'] %>','donate');
3 if ($_DB_H->connect_errno) {
4     die('DB Connect Error: ' . $_DB_H->connect_errno);
5 }
6 $_DB_H->report_mode = MYSQLI_REPORT_ALL ^ MYSQLI_REPORT_STRICT;
7 $_DB_H->query('SET NAMES \'utf8\'');