if ($includes != 1) { die("ERROR: Should not access directly."); }
/* Database credentials. Assuming you are running MySQL server with default setting (user 'root' with no password) */ define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'secnotes'); define('DB_PASSWORD', 'q8N#9Eos%JinE57tke72'); //define('DB_USERNAME', 'root'); //define('DB_PASSWORD', 'qwer1234QWER!@#$'); define('DB_NAME', 'secnotes');
/* Attempt to connect to MySQL database */ $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
// Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } ?>