Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $customer=mysqli_real_escape_string($db, $_POST['user']);
  2. $query = "SELECT * FROM `products` WHERE `customers` = '$customer'";
  3.  
  4. FORM metod post
  5. customer, brand, model, price, date between to date
  6.  
  7. $from=mysqli_real_escape_string($db, $_POST['date1']);
  8. $to=mysqli_real_escape_string($db, $_POST['date2']);
  9. $customer=mysqli_real_escape_string($db, $_POST['user']);
  10. $model=mysqli_real_escape_string($db, $_POST['getmodel']);
  11. $price=mysqli_real_escape_string($db, $_POST['getprice']);
  12.  
  13. $query = "SELECT * FROM `products` WHERE `customers` = '$customer' and `from` = '$from' and `to` = '$to' and `brand` = '$brand' and `model` = '$model' and `price` = '$price'";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement