Click here to Skip to main content
15,891,607 members
Articles / Database Development / MySQL

PHP Sample of Database Connection Configuration File having Both Connection String for MySQL and MSSQL

Rate me:
Please Sign up or sign in to vote.
1.22/5 (4 votes)
1 Jun 2023CPOL 7.6K   52   2  
Having MSQL and ODBC connection string in one configuration file for your application
This article is meant to show you how you can have connection string for MySQL Database and MSSQL Database in the same configuration file. At the end, you should be able to use this snippet on your database application. In one of my projects, I was able to use a similar approach. The config file was saved in the directory on the server and was called using "require..." in PHP.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Business Analyst Personal
Nigeria Nigeria
I have experience in application development in the use of .Net, PHP, MSSQL, JAVA....

Comments and Discussions