|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Inserting Apostrophes and special chars into database
I am wondering what is the best way to insert special characters into database, such as single and double quotes.
Is it recommended to htmlspecialchars them into e.g. ' or keep them just as a ' (single quote)?
__________________
Beginner |
|
#2
|
||||
|
||||
|
They should be kept as their normal characters. Why bother making more trouble for yourself writing something to handle them everytime you wanna read/write to the DB.
You've just gotta remember to always esacpe strings going into the DB checking for single quotes, and any other nasties. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Database Development > Inserting Apostrophes and special chars into database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|