Ver Mensaje Individual
  #5 (permalink)  
Antiguo 04/12/2010, 10:29
Avatar de spider_boy
spider_boy
 
Fecha de Ingreso: diciembre-2003
Ubicación: Chile
Mensajes: 1.855
Antigüedad: 20 años, 4 meses
Puntos: 89
Respuesta: mysql_real_escape_string

Según el manual de PHP, esto es lo que hace :

Cita:
Escapes special characters in the unescaped_string, taking into account the current character set of the connection so that it is safe to place it in a mysql_query(). If binary data is to be inserted, this function must be used.

mysql_real_escape_string() calls MySQL's library function mysql_real_escape_string, which prepends backslashes to the following characters: \x00, \n, \r, \, ', " and \x1a.

This function must always (with few exceptions) be used to make data safe before sending a query to MySQL.
\x00 = NULL ( me corrigen si me equivoco )
\x1a = SUB

Fuente : http://www.pcguide.com/res/tablesASCII-c.html
__________________
Nunca te olvidaré mi negra hermosa. Te extraño demasiado.