Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/03/2009, 08:26
Avatar de tata009
tata009
 
Fecha de Ingreso: septiembre-2008
Ubicación: En mi casa
Mensajes: 426
Antigüedad: 16 años, 6 meses
Puntos: 3
Respuesta: Ayuda checkbox

Hola amigos , muchisimas gracias por responder, miren , no me inserta nada en el registro , les muestro mi procesar.php

Código PHP:
Ver original
  1. function limpiar_sql_mensaje($mensaje){
  2.     $mensaje = htmlentities($mensaje); // Evita introducción código HTML
  3.     if (get_magic_quotes_gpc()) $value = stripslashes($mensaje);
  4.     $mensaje = mysql_real_escape_string($mensaje);
  5.     return $mensaje;
  6. }  
  7.  
  8.  
  9.  
  10. function limpiar_sql_nombre($nombre){
  11.     $nombre = trim(htmlentities($nombre)); // Evita introducción código HTML
  12.     if (get_magic_quotes_gpc()) $nombre = stripslashes($nombre);
  13.     $nombre = mysql_real_escape_string($nombre);
  14.     return $nombre;
  15. }  
  16.  
  17.  
  18. function limpiar_sql_tags($tags){
  19.     $tags = trim(htmlentities($tags)); // Evita introducción código HTML
  20.     if (get_magic_quotes_gpc()) $tags = stripslashes($tags);
  21.     $tags = mysql_real_escape_string($tags);
  22.     return $tags;
  23. }  
  24.  
  25.  
  26. $foo = isset($_POST['lock'])? ' 1 ': ' NULL ';
  27.  
  28.  
  29. $loco = nl2br($mensaje);
  30.  
  31.  
  32. mysql_query("insert into posts (nombre, mensaje, fecha, nick, avatar, categoria, tags, id_usuario, lock) values ('$nombre','$loco', now(), '$_COOKIE[nick]', '$userinfo[avatar]', '$categoria', '$tags', '$_COOKIE[id]', '$foo')");





Espero qe podamos encontrar el problema , un abrazo
__________________
SI pones un CD de MIcrosoft al reves aparecen mensajes satanicos pero si lo pones a la derecha PEOR SE TE INSTALA WINDOWS!!!!
Para webmasters e informaticos