teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

5

ファイル間違い

2018/01/15 07:47

投稿

cofee
cofee

スコア44

title CHANGED
File without changes
body CHANGED
@@ -59,9 +59,8 @@
59
59
 
60
60
  ```csv
61
61
  番号,作業日,送信日
62
+ 1878806,"2017-01-25 16:24:14","2017-01-31 18:56:27.000"
62
- 1894903,2017/2/4 16:38,2017/2/10 14:18
63
+ 1852883,"2017-01-25 16:25:43","2017-02-02 17:37:20.000"
63
- 1906544,2017/2/4 16:38,2017/2/11 15:43
64
- 1917941,2017/2/4 16:39,2017/2/10 16:02
65
64
  .
66
65
  .
67
66
  .

4

ソース修正

2018/01/15 07:47

投稿

cofee
cofee

スコア44

title CHANGED
File without changes
body CHANGED
@@ -55,4 +55,14 @@
55
55
  echo $e->getMessage();
56
56
  }
57
57
  }
58
+ ```
59
+
60
+ ```csv
61
+ 番号,作業日,送信日
62
+ 1894903,2017/2/4 16:38,2017/2/10 14:18
63
+ 1906544,2017/2/4 16:38,2017/2/11 15:43
64
+ 1917941,2017/2/4 16:39,2017/2/10 16:02
65
+ .
66
+ .
67
+ .
58
68
  ```

3

ソース修正

2018/01/15 07:29

投稿

cofee
cofee

スコア44

title CHANGED
File without changes
body CHANGED
@@ -45,7 +45,7 @@
45
45
 
46
46
  unset($resultList);
47
47
 
48
- // }
48
+ }
49
49
  // ハンドル閉じる
50
50
  fclose($res);
51
51
  // ダウンロード

2

誤字

2018/01/15 05:32

投稿

cofee
cofee

スコア44

title CHANGED
File without changes
body CHANGED
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  unset($resultList);
47
- $resultList = $sql;
47
+
48
48
  // }
49
49
  // ハンドル閉じる
50
50
  fclose($res);

1

ソース修正

2018/01/15 05:13

投稿

cofee
cofee

スコア44

title CHANGED
File without changes
body CHANGED
@@ -34,9 +34,6 @@
34
34
  // 配信情報を取得
35
35
  $resultList = $sql;
36
36
 
37
- foreach ($resultList as $line){
38
- fputcsv($res,$line);
39
- }
40
37
  while (count($resultList) > 0) {
41
38
  foreach($resultList as $result) {
42
39
  mb_convert_variables('SJIS-win', 'UTF-8', $result);