PHP - connect to another database
Posted on 2013-05-24
I'm new to PHP and I have the code/database working with WAMP on my local machine. I have a phpMyAdmin and my database is there...
Now, there's another phpMyAdmin that I have the URL for and our off-shore developers use that. I want to connect to a database on that phpMyAdmin. I tried below and it didnt work
1. I have the URL to that phpMySQL: https://www.mysite.com/phpmyadmin/
2. I put it in the code here
$dbhost = ' https://www.mysite.com/phpmyadmin/';
$dbuser = 'something';
$dbpass = 'something1';
$dbname = 'bdstaging';
Can I even connect to a phpMyadminthat's not local??