<?php $sql=mysqli_connect("localhost", "XXX_DBUSER_XXX", "XXX_DBPASSWORD_XXX", "XXX_DB_XXX"); if (! $sql) { die("Cannot connect to database"); } ?>