prepare("DELETE FROM brands WHERE id = ?")->execute([intval($_GET['delete'])]); admin_set_flash('success', 'Brand deleted'); header('Location: ' . ADMIN_PATH . 'pages/brands.php'); exit; } $brands = $db->query("SELECT * FROM brands ORDER BY name ASC")->fetchAll(); ?>
| Logo | Name | Slug | Featured | Status | Actions |
|---|---|---|---|---|---|
|
= strtoupper(substr($brand['name'], 0, 1)) ?>
|
= htmlspecialchars($brand['name']) ?> | = htmlspecialchars($brand['slug']) ?> |
Featured - | = $brand['status'] ? 'Active' : 'Inactive' ?> |