title: If I connect to a mysql database in my index.php file, do I need to do it again in any linked html files with embedded php?
body: <p>If I connect to a mysql database in my index.php file, do I need to do it again in any linked html files with embedded php that are parssed as php via .htaccess</p>
  
  <p>So if I have an index.php which gets the header, body, and footer from external html documents, and those documents need to have header tags which need to change content depending on the database value. So do I need to connect the mysql database within the script in the linked html file or does it globally connect for that session if I do it the index.php</p>