exec($sql); echo "Table 'invoices' updated successfully." . PHP_EOL; } catch (PDOException $e) { die("DB ERROR: " . $e->getMessage()); }