Location: PHPKode > scripts > Starting Page > starting_page/include/header.php
<?php
require('config.php');

mysql_connect("$host", "$username", "$password")or die("cannot connect to the database."); 
mysql_select_db("$db_name")or die("cannot select the database.");

$result = mysql_query("SELECT * FROM ".$prefix."settings WHERE id = 1");
while($row = mysql_fetch_array($result)) {
	$pagename = $row['pagename'];
	$template = $row['template'];
}
?>

<html>

<head>
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo $pagename; ?></title>
<?php
echo "<link href='template/$template' rel='stylesheet' type='text/css' />";
?>
</head>

<body>

<div align="center">
	<table border="0" width="850" cellspacing="0" cellpadding="0">
		<tr>
			<td valign="top" width="1024">
			<p align="center"><b><font size="6"><?php echo $pagename; ?></font></b><br><br></td>
		</tr>
		<tr>
			<td valign="top" width="1000">
			
			
				&nbsp;</td>
			
Return current item: Starting Page