I'm working on an if else statement that will display a custom link for everyone except Company A. Everything below works just fine, but it's imperative Company A not see the first link.
I've tried something along the line of:
<?php
$nolink = "Company A";
if ($_SESSION['company'] != $nolink);{ //display the link...etc
?>
...but the problem is, my custom link has nested php scripts. I think I'm on the right track, but I'm stuck. Again, my code below works except that I want the first link to disappear for Company A.
<h1>Welcome,
<?php //display company name inside the h1 tag
if (!session_register(company));{
echo $_SESSION['company'];}
?>
</h1>
<p>
<!--DISPLAY THIS LINK FOR EVERYONE EXCEPT COMPANY A-->
<span style="margin-left: 50px;">
<a href="<?php echo "folderName/" . $_SESSION['company'] . "/" ?>">» Go To <?php echo $_SESSION['company'];?> Account Info</a>
</span><br />
<!--DISPLAY THESE LINKS FOR EVERYONE-->
<span style="margin-left: 50px;">
<a href="link2.php">» Go To Link 2</a>
</span><br />
<span style="margin-left: 50px;">
<a href="link3.php">» Go To Link 3</a>
</span>
</p>