Hello all,
I am trying to get a simple members.php page to show some HTML but I cannot figure out why it will not display..
<?php
mysql_connect("myserver", "myname", "mypass") or die(mysql_error());
mysql_select_db("mydb") or die(mysql_error());
if(isset($_COOKIE['ID_my_site']))
{
$username = $_COOKIE['ID_my_site'];
$pass = $_COOKIE['Key_my_site'];
$check = mysql_query("SELECT * FROM Users WHERE name = '$name'")or die(mysql_error());
while($info = mysql_fetch_array( $check ))
{
if ($password != $info['password'])
{
header("Location: login.php");
}
else
{
?>
<html>
<body>
<h1>WHY</h1>
</body>
</html>
<?php
}
}
}
else
{
header("Location: login.php");
}
?>
I was googling and read somewhere that it might be a session bug after the initial '<?php tag'?
Any help would be greatly appreciated
Tokae