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