Show Code:
movements-read.php
<?php include 'session.php'; ?>
<!DOCTYPE html>
<html>
<head>
<title>Alexandria</title>
<link href="style1.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<?php include 'nav.php'; ?>
<?php include 'db-connect.php'; ?>
<main>
<?php
$sql="SELECT * FROM t_movements";
$result=mysqli_query($con,$sql);
while ($row=mysqli_fetch_array($result)){
echo '<div class="artist">';
echo '<h2>'.$row['movement_name'].'</h2>';
echo '<span>'.$row['movement_description'].'</span>';
echo '<a href="movement-update.php?movement_id='.$row['movement_id'].'"><img src="icons/update.png"></a>';
echo '<a href="movement-delete.php?movement_id='.$row['movement_id'].'"><img src="icons/delete.png"></a>';
echo '</div>';
echo PHP_EOL;
}
?>
<?php mysqli_close($con); //Close Connection ?>
<div id="sub-nav">
<a href="movement-create.php"><span>+</span><span>Movement</span></a>
</div>
</main>
</body>
</html>