using json or stripslashes or neither?

I’ve been on google trying to find the answer to this, but am now more confused. Here is what I have, then what I want

*IN DATABASE: Column=LastName Data in LastName=“O’Shea”

PHP:
[php]
$lname = $row[‘lastname’];
echo “” . $lname . “”;
[/php]

output
O’Shea <— this link is names.php?last=O

when it should be names.php?last=O’Shea

like i said, when i read google solutions, i just get more confused.

thanks for the helping this newbie!

It’s in the URL so use urlencode()

thanks a whole lot!

Sponsor our Newsletter | Privacy Policy | Terms of Service