Files

11 lines
192 B
PHP

<?php
include 'koneksi.php';
$type = $_POST['type'];
$coords = $_POST['coords'];
mysqli_query($conn, "INSERT INTO shapes (type, coordinates)
VALUES ('$type','$coords')");
echo "success";
?>