note 47736 added to function.include

From: Date: Sat, 27 Nov 2004 04:23:16 +0000
Subject: note 47736 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-81087@lists.php.net to get a copy of this message
I was trying to use the code bellow but when I open all the pages, the default page is still the one will show. What I like to show is all the pages I made but it won't appear but only for the default page I'm using. Please help me what script to use and how to link all pages. coz I'm only using one template then all pages will appear. <?php if(!$id || $id == ""){$id = "home";} ?> <?php include ("$id.php");?> ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47736 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47736&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47736&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47736&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47736&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47736&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47736&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47736&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81087) next »