I have this query
$query = "SELECT * FROM customers WHERE customer_name = '{$orders}'";
but when the value of the $orders
have a single quote(')
for example:
$orders = "Carlo's shop";
the query return an error.
is there any good way to handle this situation?