Best Content Streaming
Subtitle 1
Subtitle 2
Subtitle 3
Subtitle 4
Subtitle 5
Subtitle 6
Subtitle 7
Subtitle 8
Subtitle 9
// ✅ Define Database handler if not already defined if (!class_exists('Database')) { class Database { public $conn; public function __construct($conn) { $this->conn = $conn; } // ✅ Execute a raw SQL query public function query($sql) { return $this->conn->query($sql); } // ✅ Secure WHERE clause method (SELECT * FROM table WHERE column = value) public function where($table, $column, $value) { $stmt = $this->conn->prepare("SELECT * FROM `$table` WHERE `$column` = ?"); $stmt->bind_param("s", $value); $stmt->execute(); return $stmt->get_result(); } // ✅ Optional: Get count of all rows in a table public function count($table) { $result = $this->conn->query("SELECT COUNT(*) as total FROM `$table`"); $row = $result->fetch_assoc(); return $row['total'] ?? 0; } // ✅ Optional: Get sum of a column in a table public function sum($table, $column) { $result = $this->conn->query("SELECT SUM(`$column`) as total FROM `$table`"); $row = $result->fetch_assoc(); return $row['total'] ?? 0; } } } // ✅ Initialize the $db instance $db = new Database($conn); // ✅ Site-wide Settings $site_url = "https://estreamzmedia.com"; // Site URL $purchase_code = "4eac7cf6-ea79-44ec-bab0-34af52fa2492"; // Don't share $siteEncryptKey = "6882ec4933023c112845f464b01553ac83839f2c"; // Don't share $auto_redirect = true;
Discover trending shows and films from around the globe