I need to run this query, but it keeps returning nothing because of the apostrophe that's acting like a single quote. How can I change this to accomodate values with apostrophes?
Relevant part of PHP:
$selected_client = $_POST['client'];
$sql = "SELECT `client_id` FROM client_table where client_id = '{$selected_client}';" ;
For example, how can I handle a case where $selected_client
= "Bob's Bakery"