You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Menu.php 337B

12345678910111213141516
  1. <?php
  2. namespace Blog\DB;
  3. class Menu extends DB
  4. {
  5. // Fetch all links for a given menu type
  6. public function getMenu($type)
  7. {
  8. $sql = "SELECT * FROM menu WHERE type = :type ;";
  9. $stmt = $this->prepare($sql);
  10. $stmt->bindValue(":type", $type);
  11. $res = $stmt->execute();
  12. return $res;
  13. }
  14. }