<?php $connect = new mysqli("localhost","root","","validator"); if($connect){ }else{ echo "Connection Failed"; exit(); }