setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $db->prepare("SELECT * FROM customers ORDER BY regDate DESC");
$stmt->execute();
$content = $stmt->fetchAll(PDO::FETCH_ASSOC);
$customerSerial = 1; // Moved outside loop
foreach ($content as $customer) {
?>
|
|
|
|
Edit
Invoice
Installment Details
|
Error: ' . $e->getMessage() . ' | ';
}
?>