質問編集履歴

2

太字

2019/05/13 08:21

投稿

onslaught
onslaught

score19

test CHANGED
File without changes
test CHANGED
@@ -332,7 +332,7 @@
332
332
 
333
333
 
334
334
 
335
- ↓ここの実装が上手くいかないです
335
+ **↓ここの実装が上手くいかないです**
336
336
 
337
337
  function getTodoTextById($id)
338
338
 

1

各種コード変更

2019/05/13 08:21

投稿

onslaught
onslaught

score19

test CHANGED
File without changes
test CHANGED
@@ -340,7 +340,7 @@
340
340
 
341
341
  $dbh = connectPdo();
342
342
 
343
- $sql = 'SELECT id FROM todos WHERE id = :id AND deleted_at IS NULL';
343
+ $sql = 'SELECT * FROM todos WHERE id = :id AND deleted_at IS NULL';
344
344
 
345
345
  $stmt = $dbh->prepare($sql);
346
346