necesito volver a consultar la base de datos y con el resultado hacer la condición algo asi
Código PHP:
Ver originalelseif($raw['schedule']==$schedule and $raw['general_order']==$go and $raw['style_number']== $estilo and $raw['idtxfinal']==$id )
{
$sql="INSERT INTO empaque (schedule,go,estilo,serie,idtxemp,statusemp,fechaemp)
VALUES ('$schedule','$go','$estilo','$serie','$id','$status',now())";
$consult= "SELECT * FROM empaque WHERE schedule='$schedule'";
if ($num==$raw['item_quantity_open'){
$sql="UPDATE info SET status = 'Complete' WHERE schedule = '$schedule'";
}
$sql="UPDATE final SET statusfinal = 'Complete' WHERE idtxfinal = '$id'";
{
//die('Error; ' . mysql_error());
}
"<script language='javascript'>
window.location='status.php'</script>";
}
else{
echo
"<script language='javascript'>
alert('La unidad no esta reportada en Final.')
window.location='core.html'</script>";
}