Modified index.php to use newly added helper files as below:

1) mysql.inc.php
-Define constants for accessing database
-Connect to database
-Establish character set
-Make data safe to use in queries

1) config.inc.php (used by every script in the site)
-Define systemwide settings
-Define useful constants
-Start session
-Establish how errors are handled

3)header.html
Begin all HTML pages until page specific contents

4)footer.html
Ends all HTML pages after page specific contents