回答編集履歴
1
。
answer
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
foreach ($json as $row) {
|
|
7
7
|
$stmt = $pdo -> prepare($sql);
|
|
8
|
-
$workday = substr($workday,0,10);
|
|
9
|
-
$stmt -> bindParam(':workday',$row['workday'],PDO::PARAM_STR);
|
|
8
|
+
$stmt -> bindParam(':workday',substr($row['workday'],0,10),PDO::PARAM_STR);
|
|
10
9
|
$stmt -> bindParam(':workgroup',$row['workgroup'],PDO::PARAM_STR);
|
|
11
10
|
$stmt -> bindParam(':personal',$row['personal'],PDO::PARAM_STR);
|
|
12
11
|
$stmt -> bindParam(':product',$row['product'],PDO::PARAM_STR);
|