Tengo un problema cuando echo a correr este còdigo:
Código:
Cuano lo ejecuto me sale este error:$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"));
Código:
En el codigo he probado de canviar %s con ' y sin '. No se que poner=??!?! Alguien me puede ayudar=?? Warning: sprintf(): Too few arguments in J:\Server1\serverxaampp\.....\......\.......\......\modificar.php on line 41 Query was empty