mssql real escape string equivilent?
Moderator: General Moderators
mssql real escape string equivilent?
Is there an mssql function that is equivilent to the mysql_real_escape_string function? If not, how would you write one?
prepend backslashes to the following characters
(using regex)
may I ask why you can't just use mysql_real_escape_string() ?
(using regex)
Code: Select all
\x00, \n, \r, \, ', " and \x1a.My database is SQL Server 2000. Or can I use mysql functions against a SQL Server? I never thought about it but I assume not.jshpro2 wrote:prepend backslashes to the following characters
(using regex)may I ask why you can't just use mysql_real_escape_string() ?Code: Select all
\x00, \n, \r, \, ', " and \x1a.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia