prepare(" SELECT productID, model, description, imagePath FROM products WHERE model LIKE ? OR description LIKE ? ORDER BY model ASC LIMIT 60 "); if ($stmtSearch) { $stmtSearch->bind_param('ss', $like, $like); $stmtSearch->execute(); $resultSearch = $stmtSearch->get_result(); ?>

Suchergebnisse für „

num_rows <= 0): ?>

Keine Produkte gefunden.

fetch_assoc()): ?> <?= htmlspecialchars($product['model'] ?? '') ?>

close(); } // Wichtig: In Suchmodus KEINE Kategorien rendern. return; } ?> ['id' => 20, 'label' => 'iPhone'], 'ipad' => ['id' => 21, 'label' => 'iPad'], 'macbook' => ['id' => 22, 'label' => 'MacBook'], 'airpods' => ['id' => 23, 'label' => 'AirPods'], 'accessories' => ['id' => 24, 'label' => 'Accessories'], ]; ?> $cat): ?> prepare(" SELECT productID, model, description, imagePath FROM products WHERE categoryID = ? "); $stmt->bind_param("i", $cat['id']); // i = integer $stmt->execute(); $result = $stmt->get_result(); ?> num_rows > 0): ?>

fetch_assoc()): ?> <?= htmlspecialchars($product['model']) ?>

close(); ?>