Hello,
I was thinking a way to search more then 3 fields using LIKE my sql query i tried this way but its getting all the products not for the one it searched for
if(isset($_POST['search_now'])){
if(isset($_GET['go'])){
if(preg_match("/^[ a-zA-Z0-9]+/", $_POST['brand'] || $_POST['model'] || $_POST['new'])) {
$new = $_POST['new'];;
$brand = $_POST['brand'];
$model = $_POST['model'];
$mtrl = $_POST['material'];
$query1 = "SELECT * FROM products WHERE brand LIKE '%$brand%' OR model LIKE '%$model%' OR mtrl LIKE '%$papers%' ";
$prod_set = mysqli_query($connection, $query1);