query($sql); } if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['datum'])) { $datum = $_POST['datum']; list($x, $y) = explode(",", $_POST['adres']); $sql = "INSERT INTO bestellingen (datum, x, y) VALUES ('$datum', $x, $y)"; $mysqli->query($sql); } ?>
| ID | Naam | x | y |
|---|---|---|---|
| 1 | Centrum | n | n |
| 2 | Station | n | n |
| 3 | Winkelgebied | n | n |
| 4 | Park | n | n |
| # | Adres | x | y |
|---|---|---|---|
| 1 | Station | n | n |
| 2 | Winkelgebied | n | n |
| 3 | Park | n | n |
Startpunt: Centrum
Aantal te bezoeken punten vandaag: 3