Develop PHP Website for Learning Web Design Free Online
  Home   |   Forums   |   DevCMS
  Join   |   Log In
 
   

Forum Index >> PHP and MySQL Forum

Holder
else if code
   New topic    
 
else if code
by plegault - Thu Jul 29, 2010 07:13:32 PM

if(!$_SESSION['officer']){
   if($act>="5"){
        echo "<a href=\"oall.php\">here</a>";
    }
    else{    }
}
else {
 echo "<a href=\"officer.php\">edit you master page here</a>";    
}

ok i trying to get it to say if $session['master'] = nothing to see if $axt it grater then 5 if so show oall.php if they have master set to something it would show officer.php if nothing is set or is a lvl 5 or high show nothing
plegault
Forum & Site XP Level:

United States of America
nm
abq

CapricornCapricorn
Posts: 18
Joined: 11/27/08
Website: URL

RE: else if code
by Adam - Thu Jul 29, 2010 09:28:54 PM

if($_SESSION['officer'] =="" && $act >= "5"){

        echo "<a href=\"oall.php\">here</a>";

} else {    

        // Do whatever here if that if condition is not met, or just remove this else part of the statement

}

Adam
Forum & Site XP Level:

United States of America
NC
Brevard

ScorpioScorpio
Posts: 4388
Joined: 04/20/08
Website: URL

RE: else if code
by plegault - Fri Jul 30, 2010 12:27:54 AM

not what i was talk about and push i got it to work it's something with wamp dose not work right :/ works with live server
plegault
Forum & Site XP Level:

United States of America
nm
abq

CapricornCapricorn
Posts: 18
Joined: 11/27/08
Website: URL

   New topic  
 
 
Arbitrary Links and Archives
Home
Active Forums
Members
SIte News
Link To Us
Gear
2009 Forum Archive
Programming Courses
Learn HTML
Learn CSS
Learn PHP
Learn MySQL
Learn Javascript
Learn jQuery
Learn ActionScript 3.0
Learn Java
Learn XML
DevelopPHP Requires Flash Player
Get Adobe Flash player
___________________________________________

Terms of Use  •  Privacy  •  Admin Notes

©2010 developphp.com   |   Powered By FlashBuildingHolder