application/models/Dashboard_model.php
/*check if the municipalities has its name entry in the tourist spot*/
check if the municipalities has its name entry in the tourist spot
check if the municipalities has its name entry in the tourist spot
function spotChecker($table,$name){
			$this->db->where($table.'.municipality', $name);
			$ret = $this->db->get($table);
			return $ret->num_rows();
		}
function spotChecker ( $ table , $ name ) { $ this -> db -> where ( $ table . '.municipality' , $ name ) ; $ ret = $ this -> db -> get ( $ table ) ; return $ ret -> num_rows ( ) ; }
check if the municipalities has its name entry in the tourist spot
check if the municipalities has its name entry in the tourist spot