2022-10-26 14:08:26 +02:00
|
|
|
<?php
|
|
|
|
require_once('data.php');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$db = dbVerbindungErzeugen();
|
2022-10-26 16:51:39 +02:00
|
|
|
$sql = "SELECT idee.koordinatenLat, idee.koordinatenLng, idee.likes, idee.id, idee.sichtbarkeit, idee.titel FROM idee;";
|
2022-10-26 14:08:26 +02:00
|
|
|
$resultat = $db->query($sql);
|
|
|
|
$resultatArray = $resultat ->fetchAll();
|
|
|
|
echo json_encode($resultatArray);
|
|
|
|
?>
|