Jump to content

PHP isn't working..


antiy0u

Recommended Posts

Sorry I couldn't make the subject title more specific, but I can't explain it, but if you view my website you can easily see the problem.

[url=http://ultimatestorylist.awardspace.com/]http://ultimatestorylist.awardspace.com/[/url]

Click on the first link and as you see, it just says the content of the page, but the layout has disapeared. I don't know what has gone wrong or how to fix it. So help would be appreciated.

Using big words will confuse me, so please try and explain it.. in a more simpler way as I don't want to mess it up again.

The maker is away and cannot help fix it.

She told me to use this php thingy ma jig:

[quote]<?php $page = basename($_SERVER['QUERY_STRING']);
include('header.php');

if(!$page){
include('pages/main.php');
} else {
if(file_exists('pages/'.$page.'.php')){
      include('pages/'.$page.'.php');
} else {
      echo('This page does not exist!');
}
}

include('footer.php');
?>[/quote]

and name it index.php and then have seperate header.php and footer.php

The main page content has worked (main.php) but nothing else is working.

Please help me as I'm supposed to be getting the site up and running before Christmas and I have plenty of other things to add to the website as it is!

Thank you!
Link to comment
https://forums.phpfreaks.com/topic/29537-php-isnt-working/
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.