antiy0u Posted December 5, 2006 Share Posted December 5, 2006 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.phpThe 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 More sharing options...
craygo Posted December 5, 2006 Share Posted December 5, 2006 you do not want to go to the page you want to include it in your current page. So your link needs to be changed. the link should be something like[code]<?phpecho "<a href='".$_SERVER['PHP_SELF']."?page=catagories'>Catagories</a>"';?>[/code]Ray Link to comment https://forums.phpfreaks.com/topic/29537-php-isnt-working/#findComment-135519 Share on other sites More sharing options...
antiy0u Posted December 5, 2006 Author Share Posted December 5, 2006 Sorry, where do I put this? In the navigation table on the main page or in the PHP code the maker gave me? Link to comment https://forums.phpfreaks.com/topic/29537-php-isnt-working/#findComment-135520 Share on other sites More sharing options...
craygo Posted December 5, 2006 Share Posted December 5, 2006 You would put it in the navigation table. Where ever the links are.Ray Link to comment https://forums.phpfreaks.com/topic/29537-php-isnt-working/#findComment-135522 Share on other sites More sharing options...
jsladek Posted December 5, 2006 Share Posted December 5, 2006 This link will workhttp://ultimatestorylist.awardspace.com/index.php?categories-John Link to comment https://forums.phpfreaks.com/topic/29537-php-isnt-working/#findComment-135524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.