Jump to content

Basic Syntax, How To?


eradio

Recommended Posts

I need to know the proper syntax for allowing more then one section in this include.
This code below allows  a "top" include only if this section loads.

<? if($section == "frontpage") { ?>

How would I add another section. I tried commas, quotes and a few other variations.

<? if($section == "frontpage, [color=red]another section, more sections[/color]") { ?>

Whats the magic formula?
Thanks for the help

Link to comment
https://forums.phpfreaks.com/topic/29430-basic-syntax-how-to/
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.