$connection = new mysqli($mysql_host, $mysql_user, $mysql_pwd, $mysql_schema, $mysql_port);
if ($connection->connect_errno) {
header('HTTP/1.1 500 Internal Server Error');
exit;
}
$connection = new mysqli($mysql_host, $mysql_user, $mysql_pwd, $mysql_schema, $mysql_port);
if ($connection->connect_errno) {
header('HTTP/1.1 500 Internal Server Error');
exit;
}