回答編集履歴
2
修正
test
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
-
$row = $stmt->fetch();
|
49
|
+
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
50
50
|
|
51
51
|
if (0 < $row['cnt']) {
|
52
52
|
|
1
修正
test
CHANGED
@@ -35,6 +35,10 @@
|
|
35
35
|
$sql = 'select count(*) as cnt from userdata where email=?';
|
36
36
|
|
37
37
|
$stmt = $dbh->prepare($sql);
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
$arrParam = array();
|
38
42
|
|
39
43
|
$arrParam[] = $email;
|
40
44
|
|