Rabu, 26 Agustus 2009

Create a database connection file in php mysql

Whenever you are working on a project you might need to create a database connection and select a database.
Here i am going to show you a simple way to create your connection file "connect.php"
First create a file and save it as "connect.php"






Now save this file.
Now just include this file on top of your any other php script.
No need to write code each time.
ex. create a new file called "data.php" and include "connect.php" in that file on top as



Have nice time.

Tidak ada komentar:

Posting Komentar