i have created this script, but when i submit the script, i get this error:
[Wed Apr 24 14:13:23 2002] [error] [client 127.0.0.1] Premature end of script headers: c:/php/php.exe
here is my script, can anyone help please:
<?php
session_start();
session_register("user_id");
$user_id = user_id;
?>
<head>
<title>Main Page</title>
<?php
$db = mysql_connect("localhost","root");
mysql_select_db("football",$db);
if ((isset($HTTP_POST_VARS['username']) == true) && (isset($HTTP_POST_VARS['password']) == true))
{
$username = $HTTP_POST_VARS['username'];
$password = $HTTP_POST_VARS['password'];
$query = mysql_query("SELECT FROM members WHERE email = '$username' AND password = '$password'");
if (MYSQL_NUM_ROWS($query) == "1")
{
$query1 ="SELECT FROM job_seekers WHERE username ='$username'";
$result = mysql_query($query1);
$footie = mysql_fetch_array($result);
$user_id =$footie["user_id"];
$first =$footie["first"];
echo "Welcome $first";
?>
} else {
echo "Sorry, Your Information is not located in our records, please try
re-entering your login details or register!";
}
}
?>
</body>