Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.39 KB | None | 0 0
  1.         if($narrow_brand) {
  2.             if(!empty($where_query)) $where_query = "WHERE Brand='".$narrow_brand."'";
  3.             else $where_query = " AND Brand='".$narrow_brand."'";
  4.         }
  5.  
  6.         if ($narrow_position)) {
  7.             if(!empty($where_query)) $where_query = "WHERE Position='".$narrow_position."'";
  8.             else $where_query = " AND Brand='".$narrow_position."'";
  9.         }
  10.        
  11.         $query = "SELECT * FROM tbl ".$where_query;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement