Ah I see what you guys mean now.
When I was first starting out, I had the aid of a programmer who said that he always put the Connection details into a header.php as that will always be included, thus cutting down on the amount of code having to be written on each page.
I wont lie but I have used Google (other search engines are available ) and I will admit that most of the time in the examples shown, the connection details are entered separately as opposed to in a header file.
Fortunately, the project I am working on is still in its early days so refactoring will not be an issue at all.
Out of Interest, Is there a 'Best Practice' you stick to when it comes to DB Connections etc?