質問編集履歴

2

ご指摘の変数ミス修正しました。

2018/09/08 00:54

投稿

toritoritori
toritoritori

スコア16

test CHANGED
File without changes
test CHANGED
@@ -68,7 +68,7 @@
68
68
 
69
69
  $stmt->bindParam(3,$text3,PDO::PARAM_STR);
70
70
 
71
- $stmt->bindParam(4,$text4,PDO::PARAM_STR);
71
+ $stmt->bindParam(4,$base64_iv,PDO::PARAM_STR);
72
72
 
73
73
  $stmt->execute();
74
74
 

1

テーブル名の誤字修正

2018/09/08 00:54

投稿

toritoritori
toritoritori

スコア16

test CHANGED
File without changes
test CHANGED
@@ -58,7 +58,7 @@
58
58
 
59
59
  //データベースに挿入
60
60
 
61
- $sql='INSERT INTO tablename(text1,text2,text3,iv) VALUES(?,?,?,?)';
61
+ $sql='INSERT INTO table1(text1,text2,text3,iv) VALUES(?,?,?,?)';
62
62
 
63
63
  $stmt=$dbh->prepare($sql);
64
64