Guest User

Untitled

a guest
Jul 12th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. public function fetchAll ($urlpath)
  2. {
  3. $districts = array('1' => 'dolnoslaskie');
  4. if ($urlpath['subject'] && ! $urlpath['province'] && ! $urlpath['city']) {
  5. /*
  6. *
  7. * checking if its a province
  8. *
  9. */
  10. if (in_array($urlpath['subject'], $districts)) {
  11. echo '<h1>dolnoslaskie juz dziala!!!!!';
  12. $province_id = array_search($urlpath['subject'], $districts);
  13. echo $province_id;
  14. $sql = 'SELECT * FROM ads WHERE province = ?';
  15. $resultSet = $this->getDbTable()->fetchAll($sql, $province_id);
Add Comment
Please, Sign In to add comment