Topic: Help with id code

I need some help with some coding on a id get code...

here is the script i just don't know how to get the news to show with this code... years ago i had a anime site and i remember that this code once worked

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php

$pathToMainPage = "include("cutenews/show_news.php"); // make sure this points to the home page (Or news)
$pathTo404Page = "404.php"; // make sure this points to the 404 page

if(isset($_GET['id']))
{
    $pathToIncludePage = $_GET['id'].""; // make sure the appropriate extension is used

    if(file_exists($pathToIncludePage))
    {
        include $pathToIncludePage;
    }
    else
    {
        include $pathTo404Page;
    }
}
else
{
    include $pathToMainPage;
}

?></div>


Thanks for any help on this

Re: Help with id code

Dear User,

You have an error, in this string:

$pathToMainPage = "include("cutenews/show_news.php"); // make sure this points to the home page (Or news)

you need to have

$pathToMainPage ="cutenews/show_new

Best regards,
CN Support team