hey i have a website [url]http://65.19.180.189
it pretty much is great, but when i goto hey i have a website [url]http://65.19.180.189/default.php?page=games
So heres my layout i have my default.php page which has everthing on it (header etc…) and has a table with<-START–>
[code=php]<?
# default page
$default = ‘default.php?page=home’;
# set document root path
$base = $_SERVER[‘OpenSAApachehtdocsnew’];
# list of all site pages + the id they will be called by
$pages = array(‘about’ => ‘about.php’,’contact’ => ‘contact.php’,’forum’ => ‘redirect.php’,’home’ => ‘home.htm’,’search’ => ‘./search/google.php’,’games’ => ‘./games/index.php’,’prices’ => ‘pricing.php’,’cheats’ => ‘./cheats/index.php’,’faq’ => ‘./faqz/faqs.php’,’chat’ => ‘chat.php’,’agames’ => ‘./games/agames.php’);
if(array_key_exists($_GET[‘page’], $pages))
{
foreach($pages as $pageid => $pagename) {
if($_GET[‘page’] == $pageid && file_exists($base.$pagename))
{
/* if somebody’s making a request for ?page=xxx and
the page exists in the $pages array, we display it
checking first it also exists as a page on the server */
include $base.$pagename;
}
} // end foreach
}
else {
/* if the page isn’t listed in $pages, or there’s no ?page=xxx request
we show the default page, again we’ll also just make sure it exists as a file
on the server */
if(file_exists($base.$default)) include $base.$default;
}
?>
<-END–>
What this does is that when you click on a pahge link it displays it inside the table (where i put the code) so thats y i dont want it 2 open in a new page. I was wondering how i cood mod the code to instead of-eg. index.php?page=home -BE- eg.index.php?catid=games&pid=4x4r
Finally could someone tell me y the pics dont work and y the games show “page cannot be displayed” when everthing is there and linked correctly.
Thx 2 any1 who helps ?