Whenever you are working on a project you might need to create a database connection and select a database.
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.