« Tag test | Main | Elliott Murphy »

Stupid PHP function name of the day

mysql_escape_string

Escapes a string for use in a mysql_query

This function became deprecated, do not use this function. Instead, use mysql_real_escape_string().

Alright then:

mysql_real_escape_string

Escapes special characters in a string for use in a SQL statement

And what makes it more ‘real’ that the previous one? The fact that it’s not deprecated yet? Then why not call it mysql_not_deprecated_escape_string? Or mysql_not_deprecated_as_of_php_4_3_0_escape_string?

TrackBack

TrackBack URL for this entry: http://ithink.ch/blog/tb.cgi/193.

Make sure JavaScript is enabled before using this URL. If you would like to ping my blog but can't, please do send me an e-mail at os3476 at this domain.

Post a comment

Make sure JavaScript is enabled before posting a comment. If you would like to post a comment but can't, please do send me an e-mail at os3476 at this domain.

Do not meddle in the affairs of Coding Ninjas, for they are subtle and quick to anger.