PHP scripts and programs for Beginner to Master

php programs, php ready to use scripts & functions, css tutorials, html, javascripts, ajax examples for Beginner to Master

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.

I'm reading: Create a database connection file in php mysqlTweet this!


Post a Comment