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