In my mysql database, I have some text that contains single quotes ’ and when I try to fetch that data, it shows as null. How can I fix this issue.
Thanks
Here is what I am doing
$products =   "SELECT * FROM products ";
$result = @mysql_query($products, $connection) or showSQLError();
    if($result) {
        $results_array = array();
        while($row = mysql_fetch_array($result)) {
            $results_array[] = array(
                'name' => $row['name'],
                'description' => mysql_real_escape_string(nl2br($row['description']))
            );
        }
    } 
and my string is
Puppy’s dental health. 
and result is
"description":null
 
    