|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
what if ' is in the string to be inserted
Hi, I want to insert a string into a database, but what if special characters like ' is in the string?
Thanks |
|
#2
|
|||
|
|||
|
i c just replace ' with ''
|
|
#3
|
|||
|
|||
|
You can write some thing like this
strname = Request.Form("strname") strname = Replace(strname,"'","''") Here I have used VB Script function called Replace |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > what if ' is in the string to be inserted |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|