Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/08/2008, 12:27
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
No me inserta bien en la bd

Hola,
Hize un code para insertar un dato en una bd:
Form:
Código HTML:
<form name="form1" method="post" action="?id=agregar">
  Titulo:<br>
  <input type="text" name="tit">
  <br>
  Cansion:<br>
  <textarea name="des" wrap="off" style="width: 444px;height: 150px;"></textarea>
  <br>
  <input type="submit" name="Submit" value="Agregar">
</form> 
y php:
Código PHP:
$t=$_POST['tit'];
$des=nl2br($_POST['des']);
$query "INSERT INTO $tabla_cansion (fecha, titulo, cansion) VALUES ('$f','$t','$des')"
$isete=mysql_query($query) or die(mysql_error()); 
echo 
"Se a agregado correctamente la cansion."
Me lo inserta todo hasta que llega a una coma.
por ejemplo:
"Nunca más are algo haci."
Me guarda:
"Nunca m"
¿Porque sera?
Gracias
Salu2
__________________
Half Music - www.halfmusic.com