
15/03/2015, 08:26
|
| | Fecha de Ingreso: marzo-2015
Mensajes: 5
Antigüedad: 10 años Puntos: 0 | |
Error sprintf() Too few arguments Hola gente!
Tengo un problema cuando echo a correr este còdigo:
Código:
$updateSQL = sprintf("UPDATE 3eso1 SET NombreUsuari='%s', Materia='%s', Tipus='%s', Tema='%s', Data='%s', Nota='%s', Comentarios='%s' WHERE Id='%s'",
GetSQLValueString($_POST['NombreUsuari'], "text"),
GetSQLValueString($_POST['Materia'], "text"),
GetSQLValueString($_POST['Tipus'], "text"),
GetSQLValueString($_POST['Tema'], "text"),
GetSQLValueString($_POST['Data'], "text"),
GetSQLValueString($_POST['Nota'], "text"),
GetSQLValueString($_POST['Comentarios'], "text"));
Cuano lo ejecuto me sale este error:
Código:
Warning: sprintf(): Too few arguments in J:\Server1\serverxaampp\.....\......\.......\......\modificar.php on line 41
Query was empty
En el codigo he probado de canviar %s con ' y sin '. No se que poner=??!?! Alguien me puede ayudar=?? |