I know the header must be sent before anything is called into the browser, but I can't for the life of me see what it's refering to on this script :
<?
include("../include/session.php");
?>
<html>
<title>title</title>
<?
if(!$session->logged_in){
?>
<body>
<head>
<style type="text/css">
a {
color: #00FF00;
}
a:visited {
color: #00FF00;
}
a:active {
color: #00FF00;
}
a:hover {
color: #00FF00;
}
.style1 {
font-family: "Times New Roman", Times, serif;
}
.style2 {
font-size: large;
}
.style3 {
text-align: center;
}
</style>
</head>
<body style="color: #00FF00; background-color: #000000">
<div class="style3">
<span class="style1"><strong><span class="style2">You need to login first.<br>
<br>
<a href="../index.php" style='text-decoration: none;'>Click To Login</a></span></strong></span>
</div>
</body>
<?
}
else{
?>
<?
$host = "xxxxxx";
$user = "xxxxxx";
$pass = "xxxxxx";
$db = "xxxxxx";
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
mysql_select_db($db) or die ("Unable to select database!");
$sql = "SELECT * FROM upload";
$result = mysql_query($sql);
?>
<body>
<html>
<center>
<body bgcolor="Black">
<table>
<tr>
<? while($row= mysql_fetch_assoc($result)){ ?>
<tr>
<td><font color=Lime><?=$row['id'] ?></font></td>
<td><img border="0" src="../images/<?=$row['icon']?>.gif" width="28" height="30"></td>
<td></td><td></td><td><font color=Lime><?=$row['dis'] ?></font></td>
<td><a href="edit.php?action=confirm&id=<?=$row['id'] ?>"><img src="../images/e.png" border="0"></a></td>
<td></td><td><a href="edit-be.php?action=confirm&id=<?=$row['id'] ?>"><img src="../images/d.png" border="0"></a></td>
</tr>
<? }// end while?>
</table>
<? if(isset($_REQUEST['adjust'])){
echo "Item ".$_REQUEST['adjust'];} ?>
</body></center></html>
</body><?
}
?>