moonsflyer 4 hónapja
szülő
commit
d82ccc5ff4
1 módosított fájl, 5 hozzáadás és 3 törlés
  1. 5 3
      phalapi/src/app/Model/Home.php

+ 5 - 3
phalapi/src/app/Model/Home.php

@@ -154,14 +154,16 @@ class Home extends NotORM{
     public function getClassidShopLists($type,$province,$name,$p){
 //        $where=['type'=>$type];
 //        $where['type'] = $type;
-        $where = 'type=' .$type;
+
+        $where="type={$type} ";
         if(!empty($province)){
 //            $where['province'] = $province;
-            $where .= ' and province='.$province;
+//            $where .= ' and province='.$province;
+            $where .=" and province={$province} ";
         }
         if(!empty($name)){
 //            $where['province'] = $province;
-            $where .= " and name like '%{$province}%' " ;
+//            $where .= " and name like '%{$name}%' " ;
         }
         $info=\App\getClassidShopLists($where,$name,$p);
         return $info;