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 'FROM embobinado LEFT JOIN oven on embobinado.idtxemb = oven.idtxoven ' at line 2
Código PHP:
<?php
$mysqli = new mysqli("localhost", "root", "", "eaton");
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
$id=$_POST['id'];
$consulta = "SELECT embobinado.go,embobinado.schedule,embobinado.estilo, embobinado.idtxemb,oven.idtxoven,
FROM embobinado LEFT JOIN oven on embobinado.idtxemb = oven.idtxoven
WHERE idtxemb = '$id' and idtxoven='$id'";
$resuta=$mysqli->query($consulta) or die(mysqli_error($mysqli));
$raw =$resuta->fetch_object();
$go=$raw->go;
$schedule=$raw->schedule;
$estilo=$raw->estilo;
$idtx=$raw->idtxoven;
?>