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
Post a Comment