My index.php page is a basic system that I wrote from the ground up.
my PHP looks like this:
session_start();
require_once('includes/config.inc.php');
require_once(ADMIN_CLASSES.'dbconnect.class.php');
$message = '';
$dbconn = new DBConnect();
$adminData = $dbconn->selectQuery('SELECT * FROM admin_users');
From this I get the following error:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.
however if I remove all coding from the page and change it to <?php echo "hi" ?> it works fine….
Take a look at your web server’s error log file and it should tell you what file and line is generating the error.