<?php
   //http://stackoverflow.com/questions/18382740/cors-not-working-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 = "insert into $tabla (id,
nombre,
costo_flete) values ($id,
'$nombre',
$costo_flete )";

@mysqli_query( $conn,$sql);


echo json_encode(array(
	'id' => mysqli_insert_id($conn),
	'nombre' => $nombre,	
	'costo_flete' => $costo_flete,
	'sql'=>$sql
));

?>