Forum Moderators: coopster

Message Too Old, No Replies

mysql_real_escape_string

What is the PHP 4 < 4.3.0 equivalent?

         

The Cricketer

1:51 pm on Oct 20, 2004 (gmt 0)

10+ Year Member



I used mysql_real_escape_string in some code and it errored because my PHP is version 4.1.2

What is the equivalent that will work on 4.1.2?

Many thanks

mincklerstraat

3:56 pm on Oct 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you aren't using binary data or any fancy characterset, mysql_escape_string() should work just fine - but this maybe isn't your question, and it's more on how to escape strings for special character sets? (In which case I draw a blank)

The Cricketer

8:47 am on Oct 21, 2004 (gmt 0)

10+ Year Member



No, that's what I needed. As basic as that. Thanks.