page.php
1 <a href=”article.php?article=index”>Index</a><br>
2 <a href=”article.php?article=aboutus”>About Us</a><br>
3 <a href=”article.php?article=business”>Business </a><br>
<?
$article = (isset($_GET[‘article’])) ? $
include(“$article.php”);
if (isset($_GET[‘index’]))
{
$index=$
$aboutus=$_GET[‘aboutus’];
$chicken=”article”;
include(“$article.php”);
}
else
{
$chicken=”$article.php”;
include(“$article”);
}
?>
the index page(1) and the aboutus(2) page works since they’re in the same location with this file. But the business(3)page is located in a sub folder. What possibly might be the solution? thanks in advanced.
it’s for article pages. The links would be like
[url]www.server.com/article/?article=study
[url]www.server.com/article/?article=math
[url]www.server.com/article/?article=computer
or
[url]www.server.com/article/page.php?article=study
[url]www.server.com/article/page.php?article=math
[url]www.server.com/article/page.php?article=computer