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