Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

November 3, 2010

No Comments


Multiple MYSQL Database Connection in PHP

Do you want to make a MYSQL connection with multiple database in PHP? I am working on project where i need to use two database. I prefer not to make separate MYSQL connection for two database if both database is on same server and accessible by same user. You can simply use the database name before table name. Look at below code.