質問編集履歴
1
解決したコードの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -50,4 +50,12 @@
|
|
50
50
|
Warning: Illegal string offset 'Iholiday' in
|
51
51
|
|
52
52
|
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (2) at position 0 (2): Unexpected character in : DateTime->__construct('2')
|
53
|
+
```
|
54
|
+
|
55
|
+
おかげさまで、
|
56
|
+
以下のコードで解決できました。
|
57
|
+
```php
|
58
|
+
$result = $sth->fetchall(PDO::FETCH_ASSOC);
|
59
|
+
foreach($result as $row){
|
60
|
+
}
|
53
61
|
```
|