07-05-2017, 09:28 AM
Code:
$db->findAll("customers");
Code:
if (!$db->error() && $db->count()>0) {
Code:
$customers = $db->results(true);
Code:
echo "<TABLE CLASS=\"table\"><TR>";
Code:
foreach ($customers[0] as $key=>$value)
Code:
echo "<TH>$key</TH>";
Code:
echo "</TR>";
Code:
foreach ($customers as $customer) {
Code:
echo "<TR>";
Code:
foreach ($customer as $value)
Code:
echo "<TD>$value</TD>";
Code:
echo "</TR>";
Code:
}
Code:
echo "</TABLE>";
Code:
}