Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/12/2012, 20:37
Avatar de gildus
gildus
 
Fecha de Ingreso: agosto-2003
Mensajes: 1.495
Antigüedad: 20 años, 9 meses
Puntos: 105
Respuesta: problema con iframe y base de datos

Holas,

Siempre es bueno guardar datos seguros a la BD. esto para evitar malos usos, seria bueno que uses el htmlentities y el html_entity_decode:


Código PHP:
Ver original
  1. <?php
  2. $orig = "I'll \"walk\" the <b>dog</b> now";
  3.  
  4. $a = htmlentities($orig);
  5.  
  6.  
  7. echo $a; // I'll &quot;walk&quot; the &lt;b&gt;dog&lt;/b&gt; now
  8.  
  9. echo $b; // I'll "walk" the <b>dog</b> now
  10. ?>

http://php.net/manual/en/function.ht...ity-decode.php

Saludos
__________________
.: Gildus :.