mysql_real_escape_string( <mysql>, <text> )


Module: MySQL

Summary:

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



Example:

escapedtext = mysql_real_escape_string( mysql, self.name );



Required Args:

  • 1 : <mysql> MYSQL connection handler (a valid, open connection)
  • 1 : <text> string to escape