Azure HTTP 500 Error in App Syntax of php or Server? [closed]

-2

I have files to insert data in my application of azure the problem is that only one file of all that I have does not insert the information and sends me to error 500.

my php code:

    <?php
if($_SERVER["REQUEST_METHOD"]=="POST"){
  require 'conexion.php';
  crearConfirmado();
}
function crearConfirmado(){
global $connect;

$folio = $_POST["folio"];
$fecha = $_POST["fecha"];
$empaque = $_POST["empaque"];
$acopiador = $_POST["acopiador"];
$factura = $_POST["factura"];
$comision = $_POST["comision"];
$nombre = $_POST["nombre"];
$tipocorte = $_POST["tipocorte"]
$reunion = $_POST["reunion"];
$base = $_POST["base"];
$bandeado = $_POST["bandeado"];
$precompra = $_POST["precompra"];
$ajuste = $_POST["ajuste"];
$preventa = $_POST["preventa"];
$prefinal = $_POST["prefinal"];

$query = "INSERT INTO cortes_confirmados (folio,fecha_hora,empaque,acopiador,factura,nombre,comision,tipocorte,reunion,prebase,bandeado,precompra,ajuste,preventa,prefinal) VALUES ('$folio','$fecha','$empaque','$acopiador','$factura','$nombre','$comision','$tipocorte','$reunion','$base','$bandeado','$precompra','$ajuste','$preventa','$prefinal');";
$query = "UPDATE cortes SET estado='1', posponer='Sin posponer' WHERE folio='".$folio."'";
mysqli_close($connect);
}
?>

I guess it's a syntax problem because without code and only a echo"x" shows me perfect, I can not find the fault.

    
asked by DoubleM 21.03.2017 в 17:38
source

1 answer

3

You are missing a semicolon (; ):

$tipocorte = $_POST["tipocorte"]; // Aquí
    
answered by 21.03.2017 в 17:40