After logging in, main.php is loaded and instead of displaying the correct included page, it displays Main Page.
So what is wrong w/ my code?
Thanks in advance for any and all help...
this is placed inside the "main.php"
<?php
require('core/db.php');
require('core/check.php');
?>
This is placed inside the check.php
<?php
if (level == "1") { include('page_1.php'); }
else
if (level == "2") { include('page_2.php'); }
else
if (level == "3") { include('page_3.php'); }
?>
Inside the pages I have
<?php
echo "Page_Name";
?>