error_reporting(E_ALL); ini_set('display_errors', 1); // Database connection configuration $servername = "localhost"; $username = "cleankeg_grprices"; $password = "mxdsdnh45iv84"; $dbname = "cleankeg_grprices"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); $isMobile = preg_match("/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i", $_SERVER['HTTP_USER_AGENT']); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } include("functions.php"); ?>