View Single Post
Old 03-07-2006, 07:31 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
frank, if your server supports php, then spend a little of the time that you would be doing updating every page, and learn how to use php includes.

example here:

this is the top of every page
header.php
PHP Code:
<html>
<
head><titlemy site</title></head>
<
body>
Navigation: <a href=#>link 1</a> | <a href=#2>
<br /> 
this is the bottom of every page
footer.php
PHP Code:
</body>
</
html

now, let's make a page:

page1.php
PHP Code:
<?
include("header.php");
?>

<h1> this is my page 1</h1>
fill the page with whatever you want.

<?
include("footer.php");
?>
lets make another page

page2.php
PHP Code:
<?
include("header.php");
?>

<h1> this is my page 2</h1>
blah blah blah

<?
include("footer.php");
?>
now you can change the header and footer in a single file and it will update across your entire site.

if you dive further into php, then you will be able to store things like your recipes in a database. it would make it so all your articles and recipes could be displayed from a single script.

sorry i had to edit your post. we need to keep things work safe around here. i want to try that grilled lamb with mint spice recipe i saw on your site earlier i had a funny story tonight, i went to linens and things to get a cast iron skillet. the emeril one was marked as 0.00. I took it up to the counter and asked, and the guy said it was $ .01. I thought he was kidding, but he wasn't. I told him I will take 2 then. 2 pans for 2 cents. made my day.
sde is offline   Reply With Quote