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.