I am updating a site for a company. The site was at one time working, and has since been pulled offline. All the php, js and .sql files were sent to me and I should have just been able from the beginning to load and run the site. unfortunately this is not the case. I continuously get the following errors just trying to load(again i havent touched the code yet):
Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: A session had already been started - ignoring session_start() in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 2, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant listing - assumed 'listing' in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 17, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: fld_emailid in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 101, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Undefined variable: file_name in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 101, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: fld_emailid in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\top-header-2.php on line 118, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant fld_emailid - assumed 'fld_emailid' in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\contactus.php on line 72, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Notice: Undefined index: fld_emailid in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\contactus.php on line 72, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:03 2008] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected '=' in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\include\\left.php on line 67, referer: http://localhost/neighbours/index.php
[Tue Mar 11 09:14:05 2008] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected '=' in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\neighbours\\user_register.php on line 419, referer: http://localhost/neighbours/contactus.php
I am at a loss on how to correct this. I recompiled the database using the .sql files, which is where "listing", "fld_emailid" and "file_name" are all fields that were created in the database. I imagine the parse error is caused by the assignment of these "undefined fields" to another variable. But why if the fields exist in the database am i getting these undef errors.