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