<?php include("admin/load/nosession.php"); //Load Database Connection $results = $mysqli->query("SELECT * FROM lessonassignments"); while ($resRow = $results->fetch_assoc()) { $id = $resRow["id"]; // $lesson = $resRow["lesson"]; // $contenttype = $resRow["contenttype"]; // $contentid = $resRow["contentid"]; // $dorder = $resRow["dorder"]; // $forceorder = $resRow["forceorder"]; // $scoreneeded = $resRow["scoreneeded"]; // $var1 = $resRow["var1"]; // $title = $resRow["title"]; // $description = $resRow["description"]; // }