<?php $server = "localhost"; $username = "root"; $password = ""; $db = "your_db_name"; $conn = mysqli_connect($server, $username, $password, $db); if(!$conn){ die('Error in connecting to server or Database: '); }