<?php
include '../comunes_php/cors.php';


$id = intval($_REQUEST['id']);
$nombre = $_REQUEST['nombre'];
$costo_flete=$_REQUEST['costo_flete'];



include 'tabla.php';
include '../rdb/conn.php';

$sql = "update $tabla set nombre='$nombre',costo_flete='$costo_flete' where id=$id";
@mysqli_query( $conn,$sql);
echo json_encode(array(
	'id' => $id,
	'nombre' => $nombre,
	'costo_flete' => $costo_flete,
	'sql'=>$sql
));
?>