Select matching records using WHERE ... AND

How to select only the records which match a user’s search criteria, using the SQL commands WHERE…&&.