mssql real escape string equivilent?
Posted: Fri Dec 30, 2005 6:18 pm
Is there an mssql function that is equivilent to the mysql_real_escape_string function? If not, how would you write one?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
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.