Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/03/2012, 06:35
Avatar de repara2
repara2
 
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 13 años, 7 meses
Puntos: 331
Respuesta: Error de Mysql y PHP

Haz echo de la sentencia y pruébala en tu cliente mysql:


Código PHP:
Ver original
  1. echo $insertSQL = sprintf("INSERT INTO regstrousuarios (IdUsuario, Nombre, Apellido, Direccion, Telefono, Email, Usuario, Contraseña) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
  2. GetSQLValueString($_POST['IdUsuario'], "int"),
  3. GetSQLValueString($_POST['Nombre'], "text"),
  4. GetSQLValueString($_POST['Apellido'], "text"),
  5. GetSQLValueString($_POST['Direccion'], "text"),
  6. GetSQLValueString($_POST['Telefono'], "int"),
  7. GetSQLValueString($_POST['Email'], "text"),
  8. GetSQLValueString($_POST['Usuario'], "text"),
  9. GetSQLValueString($_POST['Contrasea'], "text"));
__________________
Fere libenter homines, id quod volunt, credunt.