From 19b37387baf2144db093e2106158aa671a896f77 Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Sun, 10 Jan 2021 14:53:47 +0100 Subject: [PATCH] maybe this way... --- adminarea_useradmin.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/adminarea_useradmin.php b/adminarea_useradmin.php index 28e8e78..dddd070 100644 --- a/adminarea_useradmin.php +++ b/adminarea_useradmin.php @@ -28,8 +28,46 @@ if($_SESSION['isadmin'] == 0) { } echo ''; +?> + + '; //initialize table tag +while ($property = mysqli_fetch_field($result)) { + echo '' . $property->name . ''; //get field name for header + array_push($all_property, $property->name); //save those to array +} +echo ''; //end tr tag + +//showing all data +while ($row = mysqli_fetch_array($result)) { + echo ""; + foreach ($all_property as $item) { + echo '' . $row[$item] . ''; //get items using property value + } + echo ''; +} +echo ""; +?> +
'; echo ''; ?>