| @@ 92-97 (lines=6) @@ | ||
| 89 | } |
|
| 90 | ||
| 91 | // set from |
|
| 92 | if (isset($_POST['product_from'])) { |
|
| 93 | $product_from = (int)$_POST['product_from']; |
|
| 94 | if ($product_from > 0) { |
|
| 95 | $sql .= ' AND (product_price > ' . $product_from . ')'; |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | // set to |
|
| 100 | if (isset($_POST['product_to'])) { |
|
| @@ 100-105 (lines=6) @@ | ||
| 97 | } |
|
| 98 | ||
| 99 | // set to |
|
| 100 | if (isset($_POST['product_to'])) { |
|
| 101 | $product_to = (int)$_POST['product_to']; |
|
| 102 | if ($product_to > 0) { |
|
| 103 | $sql .= ' AND (product_price < ' . $product_to . ')'; |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||
| 107 | if ($_POST['product_stock'] == 2) { |
|
| 108 | $sql .= ' AND (product_stock > 0)'; |
|