cara memeriksa apakah php terhubung ke database
<?php
$con = new mysqli("host","username","password","database");
echo $con ? 'connected' : 'not connected';
?>
Happy Hippopotamus