Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/11/2015, 11:21
edgaralcalaserra
 
Fecha de Ingreso: octubre-2015
Ubicación: ciudad juarez
Mensajes: 90
Antigüedad: 8 años, 7 meses
Puntos: 1
Sonrisa error con insert

señores tengo este insert

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);
?>
y me da este erroe que puede ser


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