回答編集履歴
2
追記
test
CHANGED
@@ -96,6 +96,8 @@
|
|
96
96
|
|
97
97
|
} catch (Exception $e) {
|
98
98
|
|
99
|
+
$pdo->rollBack();
|
100
|
+
|
99
101
|
$result = sprintf("Error: %s", $e->getMessage());
|
100
102
|
|
101
103
|
}
|
1
追記
test
CHANGED
@@ -128,6 +128,12 @@
|
|
128
128
|
|
129
129
|
<body>
|
130
130
|
|
131
|
+
<?php if (isset($result)) : ?>
|
132
|
+
|
133
|
+
<p><?= h($result); ?></p>
|
134
|
+
|
135
|
+
<?php endif; ?>
|
136
|
+
|
131
137
|
<table>
|
132
138
|
|
133
139
|
<thead>
|