- Impact
- 4
Hi,
Im getting a blank page with no errors on.
The php code im using is this and i cant see anythink wrong, any deas, prob me just being stupid and missing out somthing simple.
Any help will be a great help.
Thanks,
-ed
Im getting a blank page with no errors on.
The php code im using is this and i cant see anythink wrong, any deas, prob me just being stupid and missing out somthing simple.
PHP:
<?php
if(
$_POST['do'] == "" or $_GET['do'] == ""){
$_GET['do'] == "home";
}
if(
$_POST['do'] == "search" or $_GET['dosearch'] == "yes"){
$subaction = "search"; $dosearch = "yes"; include("./search.php");
}elseif(
$_GET['do'] == "TV_news"){
$category = "1"; $template = "tv"; include("./show_news.php");
}elseif(
$_GET['do'] == "TV_sport"){
$category = "2"; $template = "tv"; include("./show_news.php");
}elseif(
$_GET['do'] == "TV_kids"){
$category = "3"; $template = "tv"; include("./show_news.php");
}elseif(
$_GET['do'] == "TV_music"){
$category = "4"; $template = "tv"; include("./show_news.php");
}elseif(
$_GET['do'] == "TV_moives"){
$category = "5"; $template = "tv"; include("./show_news.php");
}elseif(
$_GET['do'] == "TV_general"){
$category = "6"; $template = "tv"; include("./show_news.php");
}elseif(
$_GET['do'] == "home"){
$category = "100"; $template = "content"; include("./show_news.php");
}elseif(
$_GET['do'] == "contact"){
$category = "101"; $template = "content"; include("./show_news.php");
}elseif(
$_GET['do'] == "help"){
$category = "103"; $template = "content"; include("./show_news.php");
}elseif(
$_GET['do'] == "submit"){
$category = "104"; $template = "content"; include("./show_news.php");
}elseif(
$_GET['do'] == "tv"){
$category = "105"; $template = "content"; include("./show_news.php");
}elseif(
$_GET['do'] == "a1d9m9i2n"){
echo"welcome back admin";
}else(
echo"Error, do is empty or is somthing its not ment to be, do = '$do' ";
}
?>
Any help will be a great help.
Thanks,
-ed






