Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. $min=$_REQUEST['min'];
  2.  
  3. $max=$_REQUEST['max'];
  4.  
  5. if(!$max){
  6. $max = 45; // or what ever value you like
  7. }
  8.  
  9. $q3="select * from product where price > '$min' and price < `$max' ";
  10.  
  11. $q=mysql_query($q3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement