Second My SQL Setting #55


  • New
  • Enhancment
Open
Assigned to lorenzo_p
  • _ForgeUser8038528 created this issue Apr 10, 2014

    Hello,

    Can you add a seccond MySQL Setting

    1 only for the Shop and the second for the Iconommy

    for exemple:

    // Database config
    function ConnectDB(){global $db,$config;

      $host     = 'localhost';
      $port     = 3306;
      $username = 'mc_ishop';
      $password = '****';
      $database = 'mc_ishop';
      $config['table prefix'] = 'WA_';

      $db=@mysql_pconnect($host.($port==0?'':':'.((int)$port)),$username,$password);
      if(!$db || !@mysql_select_db($database,$db)){echo '<p>MySQL Error: '.mysql_error().'</p>'; exit();}
      mysql_query("SET names UTF8");
    }

    // iConomy config
    $config['iConomy']['use']   = 'true';    // ( true / false / 'auto' )  you you have iConomy data in another table in the same database?

      $host     = 'localhost';
      $port     = 3306;
      $username = 'mc_iconomy';
      $password = '****';
      $database = 'mc_iconomy';
      $config['table prefix'] = 'mc_iconomy';

    ?>

  • _ForgeUser8038528 added the tags New Enhancment Apr 10, 2014

To post a comment, please login or register a new account.