Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in MySQL only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
MySQL
In mysql database how to give data with apostrophe
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
shiva05
New Member
Join Date:
Apr 2008
Posts:
5
#1
In mysql database how to give data with apostrophe
Apr 24 '08, 05:27 AM
Hi frnds,
In mysql database how to give data with apostrophe for eg. (i want a data like aurovilan's to be inserted).
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#2
Apr 24 '08, 08:46 AM
Try to use
\'
----------- A single quote (“'”) character.
Comment
Post
Cancel
ronverdonk
Recognized Expert
Specialist
Join Date:
Jul 2006
Posts:
4259
#3
Apr 24 '08, 03:28 PM
Originally posted by
shiva05
Hi frnds,
In mysql database how to give data with apostrophe for eg. (i want a data like aurovilan's to be inserted).
If you insert your data via PHP, use the addslashes() function before you insert and use the stripslashes() function after you selected.
Ronald
Comment
Post
Cancel
mwasif
Recognized Expert
Contributor
Join Date:
Jul 2006
Posts:
802
#4
Apr 25 '08, 06:33 PM
Originally posted by
ronverdonk
If you insert your data via PHP, use the addslashes() function before you insert and use the stripslashes() function after you selected.
Ronald
AFAIK, there is no need to apply stripslashes() after selecting data from database.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment