|
<?php
|
|
require_once('data.php');
|
|
?>
|
|
|
|
<?php
|
|
|
|
$db = dbVerbindungErzeugen();
|
|
$sql = "SELECT idee.koordiatenLat, idee.koordiatenLng, idee.likes, idee.id FROM idee;";
|
|
$resultat = $db->query($sql);
|
|
$resultatArray = $resultat ->fetchAll();
|
|
echo json_encode($resultatArray);
|
|
?>
|