daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top