View Single Post
Old 10-19-2004, 06:26 PM   #11 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,544
sde is on a distinguished road
if you really wanna have fun, use the ternary operator
PHP Code:
<?
$page 
"pages/".(($_GET['p'])?$_GET['p']:"Home").".txt";
if( 
file_exists($page) ){
  include 
"$page";
}else{
  print(
"<tr><td class=\"base\" colspan=\"2\">AN ERROR HAS OCCURRED!</td></tr>");
}
?>
__________________
Mike
sde is offline   Reply With Quote