Hi all,
I have been using this script fine up till now, al of a sudden it doesn't seem to be working... I am try to get a php page to appear in anouther php, this is the script:
when you click something on the menu bar it sends you to index.php?page=(page name here), eg. to get to the links.php page to appear it would be index.php?page=links
Now all that seems to be happening is news.php is only being displayed, is there any reason for this?
Thanks!
I have been using this script fine up till now, al of a sudden it doesn't seem to be working... I am try to get a php page to appear in anouther php, this is the script:
PHP:
<?php
if (! file_exists("$page.php"))
{
include("news.php");
}
else
{
include("$page.php");
} ?>
when you click something on the menu bar it sends you to index.php?page=(page name here), eg. to get to the links.php page to appear it would be index.php?page=links
Now all that seems to be happening is news.php is only being displayed, is there any reason for this?
Thanks!