Hello All,
This isn't something I really need help with, I just am curious as to why my coding didn't get any errors. Below is the code:
<?
if(($UserLevel=="3") or ($UserLevel=="2")){
?>
<a href="index.php">Office Home</a>
<a href="profile.php">Profile</a>
<a href="currentservices.php">Current Services</a>
<a href="users.php">User Management</a>
<?
if($Inventory=="Yes"){
echo "<a href=inventory/main.php>Inventory</a>";
}
if($BOL=="Yes"){
echo "<a href=bol/main.php>B.O.L.</a>";
}
if($Employee=="Yes"){
echo "<a href=employee/main.php>Employee</a>";
}
if($Customer=="Yes"){
echo "<a href=customer/main.php>Customer</a>";
}
if($Payroll=="Yes"){
echo "<a href=payroll/main.php>Payroll</a>";
}
if($Finance=="Yes"){
echo "<a href=finance/main.php>Finance</a>";
}
if($Invoice=="Yes"){
echo "<a href=invoice/main.php>Invoice</a>";
}
if($Class="Yes"){
echo "<a href=class/main.php>Bible School</a>";
}
}
?>
<?
if($UserLevel=="1"){
?>
<a href="class/main.php">Class Room Home</a>
<a href="class/userprofile.php">My Profile</a>
<a href="class/classsignup.php">Sign Up For Classes</a>
<a href="class/classhistory.php">My Class History</a>
<a href="class/classdrop.php">Drop Our Of Classes</a>
<?
}
?>
<a href="logout.php">Log Out</a>
Did you find the error above? the second if is not classified as elseif.
Why did it work like I meant it to when I tested it? Shouldn't I have gotten some sort of error, or with this specific code, not have a navagational bar?
Any Thoughts Appreciated,
Johnie Karr
P.S. I am correcting the error.....just curious is all.