Code: Select all
<title><?php if(isset($title)) { print $title; } else { print "other title goes here"; } ?></title>Code: Select all
$title "unique page title here"
At the top of the categories.php the database connection file is included along with the header and to display the given category, the id is defined:
Code: Select all
$id=$_REQUEST['id'];Code: Select all
<?
$servcat=mysql_query("select * from We_ServiceCategory_tbl ");
if(mysql_num_rows($servcat)>0)
{
while($rscat=mysql_fetch_assoc($servcat))
{
?>
<a href="categories.php?id=<? echo $rscat['Category_Id'];?>" ><? echo htmlentities($rscat['Category_text']);?></a>Thanks