header.php
<?php
$conn = mysql_connect('localhost', '-', '-');
@mysql_select_db('accmaker', $conn) or die("Unable to select database");
?>
<html>
<head>
<title>Mysite.com - <?php isset($pageTitle) ? $pageTitle : 'Home'; ?></title>
</head>
<body>
profile.php
require 'header.php';
$q = mysql_query("SELECT * FROM users WHERE username = '$username'");
$r = mysql_fetch_assoc($q);
$pageTitle = "Profile of $r[username]";
Ben ne istediğimi anlıyorum
I mysql bağlı olmaz, çünkü sorgudan sonra header.php dahil olamaz
Eğer Waht önerirsiniz bağlantı her sayfada pasajı olan başka