Error:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '&& product_price
> ?' at line 1 (SQL: select * from table_products
where && product_price
> 0)
my code:
public function faq(Request $request) {
$pro = Product::all();
$p_1 = Product::where('product_price', '>', 0,'&&', 'product_price','<', 250)->get();
return view('fontend.errors.faq', compact('pro', 'p_1'));
}