I have a website plus database with details like username, password and database name. Now I want to connect and use this database into another website. I tried to include, for example
include('http://domainname.com/connect/db.php');
but unable to run query. How I can do this ?