I have this query
SELECT * 
  FROM `Products` 
 WHERE brand REGEXP '$brandFilter' 
   AND categories REGEXP '$categoryFilter' 
   AND color REGEXP '$colorFilter' 
   AND price BETWEEN '$priceMin' AND '$priceMax' 
   AND size REGEXP '$sizeFilter'
I work with PHP and every value obtained can be empty It is possible to check in SQL if the value is empty? for example: if '$brandFilter' is not null
SELECT * 
  FROM Products
 WHERE brand REGEXP '$brandFilter'
It is possible to do this in code but it is very long because it is possible to get 3 values null
thanks for your help!
 
     
    