<?php $connect = mysqli_connect('localhost', 'root','', 'purp_project'); if(!$connect){ die('Connection error'); } ?>
info at phpclasses dot org