Código PHP:
<?php
$conx = @mysql_connect("localhost","root","");
if (!$conx)
{
die('could not connect: ' . mysql_error());
}
$schedule=$_POST['schedule'];
$go=$_POST['go'];
$estilo=$_POST['estilo'];
$serie=$_POST['serie'];
$id=$_POST['id'];
$status=$_POST['statusfinal'];
mysql_select_db("eaton", $conx);
$sql="INSERT INTO final (schedule,go,estilo,serie,idtx,statusfinal,fechafinal)
VALUES '$schedule','$go','$estilo','$serie','$id,'$status',now()";
if (!mysql_query($sql,$conx))
{
die('Error; ' . mysql_error());
}
mysql_close($conx);
?>
Cita:
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 ''S750000','W303019110','V75E001','J15F00001','LNV N1-20,'proceso',now()' at line 2