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