Ver Mensaje Individual
  #8 (permalink)  
Antiguo 12/01/2010, 01:57
quimfv
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Sabadell
Mensajes: 4.897
Antigüedad: 16 años, 1 mes
Puntos: 574
Respuesta: Enviar formulario a mysql

Intenta

Código PHP:
Ver original
  1. $result = mysql_query("SELECT * FROM FormulariosWeb");
  2. if (!$result) {
  3.     die('Invalid query: ' . mysql_error());
  4. }

o

Código PHP:
Ver original
  1. $result = mysql_query("INSERT INTO FormulariosWeb (fecha , razonsocial , personacontacto , email , telefono , comentarios) VALUES ('".$fecha."' , '".$razonsocial."' , '".$personacontacto."' , '".$email."' , '".$telefono."' , '".$comentarios."')");
  2. if (!$result) {
  3.     die('Invalid query: ' . mysql_error());
  4. }

Así te deberia dar el error....

Quim