how do i display a file on a page
Posted: Thu Nov 19, 2009 7:55 am
this is my page im using as you can see i use include so i only after edit one page if i need to make changes in the future.
however i want this page to dispaly another navigationbar if not logged in. i thought i just have to do a call to my is_authed function and then display the correct one
Code: Select all
<?php
include_once 'Connect.php';
?>
<html><head>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class=logo><?php include "logo.php";?></div>
<div class=navigationbarbox><?php include "navigationbar.php";?></div>
<div class=welcome>License detilas here</div>
<div class=footerbox><?php include "footer.php";?></div>
</body>
</html>i think the problem is my echo statements can anyone tell me what i should be doing<?php
if (!is_authed())
{
echo "<div class=navigationbarbox><?php include "navigationbar.php";?></div>";
}
else
{
echo "<div class=navigationbarbox><?php include "navigationbar2.php";?></div>";
}
?>