// Establish a second database connection function iconnect_inventory_database_connection() { // Database connection details for iConnect inventory $iconnect_inventory_db_host = '41.79.4.18'; $iconnect_inventory_db_user = 'root'; $iconnect_inventory_db_pass = 'cisroot'; // $iconnect_inventory_db_name = 'cis_acct2016'; // Establish a new MySQLi connection $iconnect_inventory_db_connection = new mysqli($iconnect_inventory_db_host, $iconnect_inventory_db_user, $iconnect_inventory_db_pass); // Check the connection if ($iconnect_inventory_db_connection->connect_error) { die('Connection to iConnect Inventory Failed: ' . $iconnect_inventory_db_connection->connect_error); } // return $iconnect_inventory_db_connection; echo "success"; }
Updating…
  • No products in the cart.