SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- public function fetchAll ($urlpath)
- {
- $districts = array('1' => 'dolnoslaskie');
- if ($urlpath['subject'] && ! $urlpath['province'] && ! $urlpath['city']) {
- /*
- *
- * checking if its a province
- *
- */
- if (in_array($urlpath['subject'], $districts)) {
- echo '<h1>dolnoslaskie juz dziala!!!!!';
- $province_id = array_search($urlpath['subject'], $districts);
- echo $province_id;
- $sql = 'SELECT * FROM ads WHERE province = ?';
- $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.