[![enter image description here](https://i.stack.imgur.com/SI8p0.jpg)](https://i.stack.imgur.com/SI8p0.jpg)

This is the table ^^

I can filter data by entering all values in all search boxes.

The Query I am using is : 

```
SELECT * FROM `student` WHERE `cpi` >= '$valueToSearch' AND `sem` = '$valueToSearch2' AND `choice` = '$valueToSearch3';

```

But when I dont enter values in all search boxes, (search with single filter) table returns nothing.

I used the OR keyword but its also not helping: 

```
SELECT * FROM `student` WHERE `cpi` >= '$valueToSearch' OR `sem` = '$valueToSearch2' OR `choice` = '$valueToSearch3';

```