bit of a newbie here.
I have the below code which gets data from a data and formats it as a json string. But how can I put this into my js to work with the code there?
PHP / Json encode
<?php include "db.php" ?>
<?php
echo " <br /> Currently Viewing Feedback For 13 <br /> <br /> <br /> <br /> ";
$result = mysqli_query($db_connection, "SELECT * FROM feedback");
while ($row = $result->fetch_assoc()){
echo "<br /> <br /> <br />";
echo json_encode($result);
}
?>