Features Common to Most of the Store Webpages


Common Features.  When developing the store we need to make sure that some things are common to many of the pages to increase the ease of use.  In order to do this we will create particular pages and then include them in many, most or all of the other pages.

The following table displays the image you need to copy into the images folder.


Image Name


Now we will present a file called header.php that will be included in most of the store webpages.  It displays the firefox image, a headline and links.  By including this page we will help ensure that the shopper can find things. 

This file needs to be uploaded into the includes subfolder!  If you put it anyplace else it won't be found in the other files that try to include it.



<body link="#C0C0C0" vlink="#C0C0C0" alink="#C0C0C0" text="#dddddd" bgcolor="#000000">

<div align="center">
<table border="0" cellpadding="6" cellspacing="0" width="750" id="table1">

<td width=210> <img src="images/firefox_animation.gif"></td>
<td align="left">

<p><b><i><font size="7" color="#A66838">firefox</font></i></b><br>
<i><font size="5" color="#C0C0C0">your site for the obscure</font></i></p>
<div align="center">

<table border="0" cellpadding="3" cellspacing="0" width="750" id="table2">

<td width="98"><font size="4"><a href="index.php">home</a></font></td>
<td width="152"><font size="4"><a href="departments.php">departments</a></font></td>

<td width="122"><font size="4"><a href="search.php">search</a></font></td>
<td width="113"><font size="4"><a href="basket.php">basket</a></font></td>

<td width="119"><font size="4"><a href="contacts.php">contacts</a></font></td>

<td width="110"><font size="4"><a href="profile_access.php">profile</a></font></td>



We won't be able to view the influence of this page until we develop our index.php, but this will be done in the very next webpage.

The other major page that will be included on most others has to do with making database connections.  This is the connection_config.php and it also needs to be uploaded to your includes folder.


// these are the values you need to change in order to
// connect to your database

$host = "localhost";
$user = "yourlastnameweb";
$password = "yourpassword";
$db_name = "yourlastnameweb";


Making use of this include will allow you to alter your connection information in one place and have it changed for all your files and connections.