set_charset("utf8"); // Create connection to Local Web Service Database $conn2 = new mysqli($host2, $username2, $password2, $db2); $conn2->set_charset("utf8"); } catch (mysqli_sql_exception $e) { // Log the error securely and show a generic message error_log("Database Connection Error: " . $e->getMessage()); die("ไม่สามารถเชื่อมต่อฐานข้อมูลได้ในขณะนี้ กรุณาติดต่อผู้ดูแลระบบ"); } // Application Security Key for AES Encryption if (!defined('APP_KEY')) { define('APP_KEY', 'HOSxP_Web_Service_Secret_Key_2026!'); } ?>