Guest User

Untitled

a guest
Jul 18th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. $sql = "SELECT * FROM product category LIKE :txt";
  2. $sth = $db->prepare($sql);
  3. $sth->execute( [':txt' => "%{$category}%"] );
  4. return $result = $sth->fetchAll(PDO::FETCH_ASSOC);
Add Comment
Please, Sign In to add comment