This tutorial explains how to filter data from a MySQL database table using MySQL logical operators such as BETWEEN, IN, AND, OR etc., along with WHERE clause and SELECT query in PHP.
Source: LXer – How To Select Data From A Database Using MySQL Logical Operators In PHP