<?php require_once("mysitedb.php");
$query = "SELECT * FROM notes";
$select_note = mysqli_query($link, $query);
while ($note = mysqli_fetch_array($select_note)){
echo $note['id'], "<br>";
?>
<a href="comments.php?note=<?php echo $note['id']; ?>">
<?php echo $note ['title'], "<br>";?></a>
<?php
echo $note ['created'], "<br>";
echo $note ['article'], "<br>";?>
<?php
require_once "mysitedb.php";
$query = "SELECT * FROM notes";
$select_note = mysqli_query($link, $query);
while ($note = mysqli_fetch_array($select_note)) {
echo $note["id"] . "<br>";
echo '<a href="comments.php?note=' . $note["id"] . '">' . $note["title"] . "</a>";
echo $note["created"], "<br>";
echo $note["article"], "<br>";
}