<?php
   //http://stackoverflow.com/questions/18382740/cors-not-working-php
include '../comunes_php/cors.php';


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


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

$sql = "insert into $tabla (id,
nombre) values ($id,
'$nombre' )";

@mysqli_query( $conn,$sql);


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

?>