I want the error to be displayed without showing the file directory in the server when not connected to database.
I have make some changes to make it work but fail.
$check_db = isset($db);
<?php if ((isset($_SESSION['username']) || isCookieValid($check_db))) : ?>
How would you do solve it??
The header.php have include_once resource/Database.php.
What should i do?