Shawn
03-02-2007, 04:16 PM
My programmer is asleep and I want to do some work on a site of mine.
I don't know anything about programming. Absolutely nothing. I just want to setup something simple so I can write some info on each state:
<?php include("folder/<? echo $safe_state ?>"); ?>
I took that echo command from higher up in the page, where $safe_state calls the abbreviation of a state. I want to setup a flat include file (SC.inc, FL.inc) for each state and have the page call it's appropriate file.
<? echo $safe_state ?> by itself shows the right abbreviation for the state, but when I put it in the above include -- nothing shows. Even though I've checked and re-checked the directory path several times, it just shows up blank (even though there is content in the state file I'm calling).
Why won't that PHP include above work?
-- Sorry for the ignorance. I don't build sites myself :)
I don't know anything about programming. Absolutely nothing. I just want to setup something simple so I can write some info on each state:
<?php include("folder/<? echo $safe_state ?>"); ?>
I took that echo command from higher up in the page, where $safe_state calls the abbreviation of a state. I want to setup a flat include file (SC.inc, FL.inc) for each state and have the page call it's appropriate file.
<? echo $safe_state ?> by itself shows the right abbreviation for the state, but when I put it in the above include -- nothing shows. Even though I've checked and re-checked the directory path several times, it just shows up blank (even though there is content in the state file I'm calling).
Why won't that PHP include above work?
-- Sorry for the ignorance. I don't build sites myself :)