In todays installment we will be giving you a few tips on how to get the content onto the page. as well as a basic script, we will be doing this in a number of stages, and the first will be the header tags. when coding in php you need to consider how you are going to be outputting the data. One of the things I like to work with is a templating engine as it gives you the seperation between website logic and display. Therefore I will seperate the codes logic to the display in this blog.
Today I am going to write about the logic to the header tags, there is a lot of debate as to what to include however I am only going to include title, keywords and meta description – ill leave the debate about the benefits for another day. this code is going to be keeping it as basic as possible, and we will hook up with the database next time.
Now for some code:
<?
$title = ‘Page Title’;
$metakw = ‘Meta Keywords’;
$metadesc = ‘Meta Description’;
?>
<html>
<head>
<title><? echo $title; ?></title>
<meta name=”keywords” content=”<? echo $metakw; ?>” >
<meta name=”description” content=”<? echo $metadesc; ?>” >
</head>
and this is about it for this article, next time we will be connecting to the database and then starting to build the page that is shown.

