If statement help please. 
         
               Posted on 
16th Feb 2014 07:03 pm by  
admin
        
        Hello on my site I have 2 content boxes. 1 is for the main content (which is the biggest one) and the second one is for a sub navigation (which is a small box). I am trying to write an IF statement so that if ?content=(a certain value) then the sub navigation which is box #2 will display that page sub navigation. Here is what I have so far.
Code: <?
session_start(); 
   include'dbconfig.php'; 
$content = $_GET[content];
if($content != 'hub' or $content !='hr' or $content !='crewcenter'){include'content/newmembers.php';}
//Displays side menu for HR navigation
if($content == 'hr'){?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center"><strong><a href="#">Roster</a></strong></div></td>
  </tr>
  <tr>
    <td><div align="center"><strong><a href="#">Staff</a></strong></div></td>
  </tr>
  <tr>
    <td><div align="center"><strong><a href="#">Job Openings</a></strong></div></td>
  </tr>
  <tr>
    <td><div align="center"><strong><a href="#">Forms</a></strong></div></td>
  </tr>
</table>
<? }elseif( $content == 'crewcenter' }{
}
?>
The main problem I am trying  to fix is that when I go the HR page it shows the newmembers.php and it still shows the hr submenu, I just want  to show the HR submenu. This is the same problem for the crew center. Please help.
Thanks in Advanced       
      
       
		No comments posted yet	
	Your Answer:
	        Login to answer
        
336  
 33 
 
    
    
 
Other forums
Spaghetti Code 
So.
I've pretty much reached the point where I have so many isset s on one page that I can't 
Warehouse Management 
Hi,
On our system, we have two storage locations ( A and B ) where A is the main factory 
MII Trends - add data onto chart object  
Hello,
Can anyone please provide some thoughts on my current requirement:
its pretty
Email Script does not reach destination 
Hey Guys look at this code snippet :
Code: 
//read a line from the file
$myFile = "
Rand() help needed 
Hi all,
Can someone explain and give me a quick example of how I would go about this?
HTML Email rec'd as Source Code 
The code does create and send the email successfully.  However, the message shows as html code and n
Error in query: Resource id #4?? 
hey guys, having a minor (i think) problem here that i havent been able to figure out. long story sh
Upload simple problem 
Really confused!! I run once and it worked, but when i tried today...it didn't work
Which par
Really need helps regarding Pagination with Sort 
I need someone helps regarding pagination problem...i actually want to make my page limited to let s
C - Reading a file into a byte array 
Hi,
I'm trying to read a file into a byte array in C. I have to use C as this is for a loadru