Jump to content

*SOLVED* Problems with Include?


Jessica

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.