Jump to content

Archived

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

Jessica

*SOLVED* Problems with Include?

Recommended Posts

[b]EDIT: [/b]Uhm, I have no idea what happened. It wasn't working for hours last night. I looked again just now and it works. So...if anyone wants to take a gander, feel free, but it's working now so I'm good. Sorry!

I have [a href=\"http://doublooncove.net/stalls.txt\" target=\"_blank\"]this php code[/a] saved as stalls.php. I need to display it on several different pages, so I am including it in them.

Here is one page it is included in:
[code]session_start();
include_once('../functions.php');
validate_user();
include_once('../loc_names.php');
$location = $session_loc_id;

if($location != 1){
    header('Location: http://www.doublooncove.net/explore');
    die();
}
include_once('../header.php');
?>
<h1>Top of the Third Pier</h1>
<p>
The infamous third pier of the port of the emerald coast lives up to its reputation. A few gangs of burly sailors shift cargo up the pier while a shifty-eyed man whispers quietly with their stern captain. A weasely merchant tries to sell you a parrot that appears to actually be dead, and you feel a hand tug at your pockets as an old beggar jostles into you. What a great place to do business!</p>
<?
include_once('../stalls.php');
include_once('../footer.php');[/code]

The problem is when I view just stalls.php it prints the variables title, till, etc.
When I view it in this page, it prints everything but the variables.

What is wrong?

Share this post


Link to post
Share on other sites
I will mark this as solved.

Share this post


Link to post
Share on other sites

×

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.