Jump to content

[SOLVED] Calling from one database to another


wookie

Recommended Posts

I've got a forum and gallery software each with their own mysql database on the same host. If I want to call info from the galleries database to be used in the forum, from within the forum itself, how would I do this?

 

Do I need to specify database user and pass similar to this:

 

$dbuser="####";
$dbpass="####";
$dbname="####";
$chandle = mysql_connect("localhost", $dbuser, $dbpass) 
    or die("Connection Failure to Database");

 

Or is there a simpler way to achieve this?

 

Many thanks

 

Wookie.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.