/    Sign up×
Community /Pin to ProfileBookmark

How to retrieve value from server in the case of character ‘

I have code for country:

[code=php]
<?PHP str_replace(“‘”, “`”, $countrymem);?>
<option value=”Cote d’lovire” <?php echo sticky(‘countrymem’, ‘option’, ‘Cote d’lovire’); ?>>Cote d’lovire</option>
[/code]

When user register it will work on server and value is there Cote d’lovire
But if I would like to retrieve this value it will not remember this value.

Need help

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@bokehApr 12.2006 — It's because [I]magic quotes[/I] is escaping the incoming data. Try this:[code=php]sticky('countrymem', 'option', 'Cote d\'lovire');[/code]
Copy linkTweet thisAlerts:
@toplisekauthorApr 12.2006 — Super Bokeh,

you are good as always. It works. What is actually this: d'lovire'
Copy linkTweet thisAlerts:
@bokehApr 12.2006 — Côte d'lovire is an ex French colony in sub-saharan southern West Africa that boarders the Atlantic Ocean and is known in English as the Ivory Coast.
×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...