Been doing PHP for about a week, but I cant really see how I'm going to incorperate it into my website you know? Like it all looks well but what the tutorials have taught me to do doesnt really seem of much use.
Like what benefits does a site in PHP have? And what potential does PHP have? LIke, for example, I want something so that when I add a link to my nav bar, it will add the same link to the rest of my pages so i dont have to do each page individually?
<html>
<head>
<title>Title</title>
</head>
<body>
<table>
<tr><td>Corner</td><td>Header</td></tr>
<tr><td>All your menu code here</td><td>
And in footer.html:
Code:
</td></tr>
<tr><td colspan=2>&Copyright Your Name Here</td></tr>
</table>
</body></html>
And then for every page you have, use this PHP:
Code:
<?php
require_once ('header.html');
The content of the particular page goes here.
require_once ('footer.html');
?>
Then whenever you change the menu code, or anything in either header.html and footer.html, it will be effective over all pages in your website. There are obviously more uses you can make of PHP. Think about what input you might need from your visitors, and what you need to do with it...