I want to find data between two dates and display results in table. 

Below is the code which doesn't work.

```
ps = DbConnection.cn.prepareStatement("SELECT Bill_no, Date, Cust_Name, Contact_No, Reg_No, Model, CC, QTY, Engine_No, Chasis_No, Payment_Mode, Grand_Total  FROM stock WHERE date = '$from' and '$to' ");

```