// Get site settings from database function get_setting($key, $default = '') { global $conn; static $settings_cache = []; // Return from cache if available if (isset($settings_cache[$key])) { return $settings_cache[$key]; } // Query database $stmt = $conn->prepare("SELECT setting_value FROM site_settings WHERE setting_key = ? LIMIT 1"); $stmt->bind_param("s", $key); $stmt->execute(); $result = $stmt->get_result(); if ($result && $row = $result->fetch_assoc()) { $settings_cache[$key] = $row['setting_value']; $stmt->close(); return $row['setting_value']; } $stmt->close(); $settings_cache[$key] = $default; return $default; } ?>
Learn about our story and values
Tarteel is a specialized company providing integrated solutions for your business. We believe that success comes through collaboration, innovation, and commitment to quality.
With over 15 years of experience, we have helped hundreds of companies achieve their goals and develop their businesses.
A specialized and dedicated team
Specialists
Projects
Satisfaction
Years