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

質問編集履歴

3

修正

2015/11/22 14:59

投稿

tixure55
tixure55

スコア400

title CHANGED
File without changes
body CHANGED
@@ -20,7 +20,7 @@
20
20
  }
21
21
  $sql->execute();
22
22
  $sql->closeCursor();
23
- //access_logテーブルに参照者と参照されたユーザと日時を追加
23
+ //access_logテーブルに参照者と日時を追加
24
24
  $sql2 = "insert into access_log (id,accessor,ins_date) values(null,".$id.",now())";
25
25
  $stmt = $this->db->prepare($sql2);
26
26
  $stmt->execute();

2

修正

2015/11/22 14:59

投稿

tixure55
tixure55

スコア400

title CHANGED
File without changes
body CHANGED
@@ -23,7 +23,6 @@
23
23
  //access_logテーブルに参照者と参照されたユーザと日時を追加
24
24
  $sql2 = "insert into access_log (id,accessor,ins_date) values(null,".$id.",now())";
25
25
  $stmt = $this->db->prepare($sql2);
26
- $stmt->bindParam(':sid',$id);
27
26
  $stmt->execute();
28
27
  $stmt->closeCursor();
29
28
 

1

修正

2015/11/22 14:57

投稿

tixure55
tixure55

スコア400

title CHANGED
File without changes
body CHANGED
@@ -18,7 +18,6 @@
18
18
  $sql = $this->db->prepare("SELECT * FROM Customer where Customer.SID = 10 limit 50");
19
19
 
20
20
  }
21
- $sql->bindParam(':sid',$id);
22
21
  $sql->execute();
23
22
  $sql->closeCursor();
24
23
  //access_logテーブルに参照者と参照されたユーザと日時を追加