| Shared Hosting Questions about your shared hosting account. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#11 (permalink) | |
|
DemonicAngel
Super #1
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,809 posts
Gave thanks: 25
Thanked 33 times
|
Quote:
If it's passed in though the URL (like somesite.com/page.php?id=bob) then at the top of your code you should put: PHP Code:
|
|
|
|
|
|
|
#12 (permalink) |
|
Registered User
Seasoned Poster
Joined in Aug 2006
72 posts
Gave thanks: 1
Thanked 3 times
|
What I don't understand is why it suddenly stopped working. I never used the GET thing. The pages are located in a subfolder and at the top of the page I have this:
PHP Code:
Last edited by Sanehouse; June 3rd, 2008 at 6:49 PM. |
|
|
|
|
|
#13 (permalink) | |
|
DemonicAngel
Super #1
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,809 posts
Gave thanks: 25
Thanked 33 times
|
Quote:
Maybe try: PHP Code:
PHP Code:
|
|
|
|
|
|
|
#14 (permalink) |
|
Registered User
Seasoned Poster
Joined in Aug 2006
72 posts
Gave thanks: 1
Thanked 3 times
|
The one I posted works. The problem lies in when you click on a link on the left menu. The URL in the address bar changes to "/index.php?id=main", but the content displayed doesn't change.
|
|
|
|
|
|
#15 (permalink) |
|
Registered User
Seasoned Poster
Joined in Aug 2006
72 posts
Gave thanks: 1
Thanked 3 times
|
Sorry for the double-post, but I found the solution (damn you, PHP5!):
Right after </head> goes: PHP Code:
PHP Code:
|
|
|
|
|
|
#17 (permalink) | |
|
Registered User
Fresh Surpasser
Joined in Dec 2004
7 posts
Gave thanks: 1
Thanked 0 times
|
Hi,
Since I've got a similar problem I thought I'd just post here rather than start a new topic. I don't really know much about php coding itself, so if you do reply please make it simple lol Basically I've used this php code on my websites in the past, and today I wanted to use it in a new website I'm setting up. This is basically what I use: Code:
<?php include("http://www.adaramusic.com/menu.php"); ?>
However I seem to be getting this error: Quote:
This is the website I'll be using it on: Adara :: acoustic duo Would really appreciate help with this! Cheers! x |
|
|
|
|
|
|
#18 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2004
7 posts
Gave thanks: 1
Thanked 0 times
|
Also, just a quick note to say that I have changed my design to not use php include at the moment as I would just like to get on with completing it. But I would still like to solve this problem for future reference.
|
|
|
|