Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/06/2013, 10:19
Parliament
 
Fecha de Ingreso: noviembre-2003
Mensajes: 499
Antigüedad: 20 años, 5 meses
Puntos: 7
Por qué este error?

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

este formulario de entrada de datos me da ests error y no me puedo dar cuenta donde se genera el mismo, si alguien me da una mano se lo agraezco

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO clientes (Nombre, Direccion, Telefono, Mail, Producto, Monto) VALUES (%s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['Nombre'], "text"),
GetSQLValueString($_POST['Direccion'], "text"),
GetSQLValueString($_POST['Telefono'], "text"),
GetSQLValueString($_POST['Mail'], "text"),
GetSQLValueString($_POST['Producto'], "text"),
GetSQLValueString($_POST['Monto'], "dec 6,2"));