Forum Moderators: coopster
<h3><?echo ("$page")?></h3>
and top menu
<p>
<?php
if(!@include("website/games/Atari/$review.php")
)
IF ELSE {
if(!@include("website/games/Atari/$walkthrough.php")
)
{
include("website/games/info/Atari.php");
}}
?>
<p>
and bottom menu
Well Im confused ORiginal code is
<h3><?echo ("$page")?></h3>
and top menu
<p>
<?php
if(!@include("website/games/Atari/$walkthrough.php")
)
{
include("website/games/info/Atari.php");
}
?>
<p>
and bottom menu
I want to know how i can add another else
so
if somone goes to index.php?page=Atari (working)
that it will show the info "website/games/info/Atari.php"
IF somone goes to index.php?page=Atari&walkthrough=gamename
info isnt shown, but that page is
index.php?page=Atari&review=gamename
if they go there, info isnt shown, game review is shown
if they try index.php?page=Atari&review=gamename&walkthrough=gamename it shows info because i dont want it to show 2 on page
Well I hope im clear enough, Thanks
Dont worry about someone downloading your site. They wont see anything but html. PHP is processed server side. The only way someone will realistically be able to download your site is with ftp access.
If you want to get along with any scritping language write "readable" code. You need to be able to see where you have been and what you have been doing. If you produce an epic bit of code, how are you going to ammend that later. Use comments and structure it you will thank yourself.
Use elsif's
Cheers