|
<?php
|
|
require_once('data.php');
|
|
?>
|
|
|
|
<?php
|
|
|
|
$db = dbVerbindungErzeugen();
|
|
|
|
$k_id = $_GET["id"];
|
|
$sql = "SELECT * FROM kommentar WHERE idee_id = $k_id";
|
|
$resultat = $db->query($sql);
|
|
$resultatArray = $resultat ->fetchAll();
|
|
echo json_encode($resultatArray);
|
|
?>
|