prepare($sql); $searchPattern = "%{$search}%"; $stmt->bindParam(':search', $searchPattern, PDO::PARAM_STR); $stmt->execute(); $results = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch(PDOException $e) { die("Search failed: " . $e->getMessage()); } } ?>
Showing results for: ""
Try different keywords or check your spelling