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