I've looked in many different forums all day and have not been able to get any help on this matter...hopefully someone here knows.
I'm trying to build a log in script and i've stripped the whole thing down to a simple write to database via SQL but "Start_session()" is flipping out and no one seems to know why. I'm getting these errors:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/digiconm/public_html/login/login2.php:1) in /home/digiconm/public_html/login/login2.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/digiconm/public_html/login/login2.php:1) in /home/digiconm/public_html/login/login2.php on line 2
and this is my php code
<?PHP
session_start();
mysql_connect(localhost,user,pass);
@mysql_select_db(db) or die( "Unable to select database");
$query = "INSERT INTO users VALUES ('','test','test','test','test','test','test','test','','')";
mysql_query($query);
mysql_close();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>
and help would be great!