<?php $conn = new mysqli('localhost','aaaa','aaaa','web'); if ($conn->connect_errno){ die("Connection failed" . $conn->connect_error); } ?>