
27/09/2007, 15:40
|
 | | | Fecha de Ingreso: mayo-2007 Ubicación: por ahí intentado ayudar
Mensajes: 823
Antigüedad: 17 años, 10 meses Puntos: 6 | |
Re: ERROR: escribir valores de formulario en mysql En tu codigo yo veo ke esta parte esta mal:
mysql_query("INSERT INTO material (nombre,show,formato,fuente,generacion)
VALUES ('{$_POST['nombre']}','{$_POST['show']}','{$_POST['formato']}','{$_POST['fuente']}','{$_POST['generacion']}')",$link);
Prueba poniendola de este modo:
$ins="INSERT INTO material (nombre,show,formato,fuente,generacion)
VALUES ('{$_POST['nombre']}','{$_POST['show']}','{$_POST['formato']}','{$_POST['fuente']}','{$_POST['generacion']}')";
$res = mysql_query($ins) or die('Consulta fallida: ' . mysql_error());
Según yo si debe de funcionar así, si te sale algun error o algo prueba guardar lo ke recibes en tus campos en variables y mandarselos asi a la consulta.
SALU2
__________________ "Eres grande por que caminas entre gigantes" |