Estimados tengo este error al insertar un registro en una tabla MySQL:
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 '2011-01-10'','16:01:51','0.15','test de permiso','D','N','jefepp')' at line 1
Esta es la línea en PHP:
$res2 = mysql_query("Insert into e107_Permisos (rutp,fechap,timeSp,timep,textp,estadop,finalizado ,jefeP) values ('$rutpp','$fechapp','$horasalida','$tiempo','$mot ivos','D','N','$jefepp')")or die (mysql_error());
Y esta es la tabla en MySQL:
Campo Tipo Cotejamiento
rutp varchar(10) latin1_swedish_ci
fechap date
timeSp time
timep float
timeLp time
textp text latin1_swedish_ci
estadop char(1) latin1_swedish_ci
finalizado char(1) latin1_swedish_ci
jefeP varchar(30) latin1_swedish_ci
No he podido sacar el maldito error, ayuda please