Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect one common db.php file. #1

Open
pulkitvaishnav opened this issue Jul 12, 2014 · 1 comment
Open

Connect one common db.php file. #1

pulkitvaishnav opened this issue Jul 12, 2014 · 1 comment
Labels

Comments

@pulkitvaishnav
Copy link
Contributor

We are creating separate connection code in each of our file. It is not a good programming habit, instead of creating a separate file we should create a common file which helps when we run our code on different systems. Only a single file is updated and no need to edit each file.

@Prashant-Yadav
Copy link
Contributor

I have created a database_connect.php file which include code for
connection with databse. We can include this file in our code.

On Sat, Jul 12, 2014 at 9:38 PM, pulkit vaishnav [email protected]
wrote:

We are creating separate connection code in each of our file. It is not a
good programming habit, instead of creating a separate file we should
create a common file which helps when we run our code on different systems.
Only a single file is updated and no need to edit each file.


Reply to this email directly or view it on GitHub
#1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants