2022-10-27 17:33:19 +02:00
|
|
|
<?php
|
|
|
|
require_once('data.php');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$db = dbVerbindungErzeugen();
|
2022-11-14 16:27:53 +01:00
|
|
|
|
|
|
|
$k_id = $_GET["id"];
|
|
|
|
$sql = "SELECT * FROM kommentar WHERE idee_id = $k_id";
|
2022-10-27 17:33:19 +02:00
|
|
|
$resultat = $db->query($sql);
|
|
|
|
$resultatArray = $resultat ->fetchAll();
|
|
|
|
echo json_encode($resultatArray);
|
|
|
|
?>
|