If you mean a file so you dont have to type up database connection everytime.
1) Create a file e.g. config.php
2) Add
PHP Code:
$con = mysql_connect("localhost","username","password")
to the file and fill it out so the connection works.
3) open up the three files and replace
PHP Code:
$con = mysql_connect("localhost","username","password");
with
PHP Code:
@include('./config.php');
Thats the answer to the title anyway.
|