|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
vbscript addslashes db insert special characters
what's the vbscript equivilant of adding slashes before special characters when doing inserts into a DB? are we supposed to just use urlencode or do replace regex calls?
PHP = addslashes VBscript = ????? |
|
#2
|
|||
|
|||
|
AFAIK there is no equivalent. If you want magic_quotes_sybase just do replace(sqlstring, " ' " , " ' ' ") (extra spaces) to replace single ' with double '
Otherwise you probably have to roll your own function to backslash escape the characters that addslashes does for you. Last edited by Doug G : September 8th, 2003 at 10:47 PM. |
|
#3
|
|||
|
|||
|
*sigh* exactly the response i expected/didn't want to hear.
|
|
#4
|
|||
|
|||
|
I use a VBS class include file that has string utility methods that process sql data (among other things).
|
|
#5
|
|||
|
|||
|
and do you plan on providing a zip or link to this class or at least the name of it?
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > vbscript addslashes db insert special characters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|