📅  最后修改于: 2022-03-11 14:53:26.154000             🧑  作者: Mango
'; //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 "";
?>