php - I want to select customer as well as date filter in sql -


i have query select between dates customer below shows error as

you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'brand1' in /path on line 92' @ line 2

$query =" select *    fuelinv     `billdate` between '$from1' , '$to1'      , `cusname` = '$brand1'  "; 

remove '' around variables. when using "" string in php free use variables without special symbols.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -