prepare($countQuery); $stmt->execute($params); $totalInsurance = $stmt->fetchColumn(); $totalPages = ceil($totalInsurance / $limit); // Fetch Data $query = "SELECT * FROM insurance_companies $where ORDER BY id DESC LIMIT $limit OFFSET $offset"; $stmt = $db->prepare($query); $stmt->execute($params); $insurance_companies = $stmt->fetchAll(); // --- AJAX HANDLER --- if (isset($_GET['ajax_search'])) { ob_start(); if (empty($insurance_companies)): ?>
| ID | |||||
|---|---|---|---|---|---|
| # | |||||