Output already started
Thank you for taking the time to respond.
While I have you on the line can I ask another PHP question?
I call a header file from an index file. In the first code snippet I get the "output already started" when I run the index page. In the second I don't.
<?php
session_start();
require_once ('db_connect_lms.php'); // include the database connection
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
---------------------------------------------------------------------------------------------------------------------------------
<?php
error_reporting(0);
session_start();
require_once ('db_connect_lms.php'); // include the database connection
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
If I comment my error check out, which I did after my dbase connection worked, I got the error. Even removing the line completely causes the same error. I thought the parser was seeing it as a blank line.
I am new to PHP but thought I had this part figured out. Can you explain why the error occurs?
