https://www.icyphoenix.com/viewtopic.php?f=4&t=8610&p=59446#p59446
-----------------------------------
mort
Tue 21 Jan, 2014 05:29

Re: CUSTOMIZATION - Create A Custom Page In Icy Phoenix 2.0
-----------------------------------
To call another database you would need another config file (myconfig.php) with the connect strings, and then you would need to include other strings(script) that calls and parses the connection data - and how it is to be handled - to what you are writing/doing that you want to keep separate.

Maybe something like this.

myconfig.php

[code linenumbers=false]$dbhost = 'localhost'; // Database host - usually localhost
$dbuser = ''; // Database User Name
$dbpass = ''; // Database Password
$dbname = ''; // Database Name
$dbpre = 0;[/code]


Your Page:

[code linenumbers=false]
include "myconfig.php";
error_reporting(E_ALL);
$server = $dbhost;
$dbuser = $dbuser;
$dbpass = $dbpass;
$dbname = $dbname;

$x = mysql_connect($server,$dbuser,$dbpass) or die(mysql_error());
mysql_select_db($dbname,$x);[/code]

No doubt you will also have to address or re-define some CONSTANTS and variables - and then the whole thing will get messier.

There may be an easier way - - - - - - Dunno!


