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