Jump to content

php if else statement


kade119

Recommended Posts

I'm a noob, looking for help w/ a small code snippet

 

what i'm trying to do is show content based on if the url is at the root or at index.php otherwise it hides the content

 

so if i'm at the index or root it will show my content/html otherwise any other URL it should be hidden

 

thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/189041-php-if-else-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.