Possible Duplicate:
Using same MySQL Connection in different PHP pages
This is completely new to me, as it stands i have my connect statements on each page in my PHP system. is there a way that i can store this in another, dedicated file and call on this in each page as opposed to including the hard code in each PHP file? could anyone point me in the right direction for tutorials or explain how this works?
Thanks
Put the connection information in a file, and use include in all the other pages.
include
include_once
require
require_once