<?php include("admin/load/nosession.php"); //Load Database Connection $results = $mysqli->query("SELECT * FROM lessonassignmentresources"); while ($resRow = $results->fetch_assoc()) { $id = $resRow["id"]; // $lessonassignment = $resRow["lessonassignment"]; // $title = $resRow["title"]; // $value = $resRow["value"]; // }