Some people use the method you are describing without using a
database.  This is especially useful when working with tables.  As most
know, using tables is great, however, you end up duplicating a lot of code
for the menus.  This makes updating the menu someone difficult.  Rather
than go through that hassle, you can use PHP with some includes... look at
the following example:

<html>
<body>
<?
        if (!$page)
        {
                $page="home";
        }
        include("$page.inc");
?>
</body>
</html>

Basically, if I call the web page index.php3?page=home, home.inc is
loaded.  If I call the web page index.php3?page=now, then now.inc is
loaded.  If I simply call index.php3 without a page=, home.inc is
loaded.  In this way I can maintain the structure of any tables I have
without having to duplicate any effort.  Golfinohio.com works much like
this.

Thanks,

Michael Ridinger


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to