回答編集履歴
1
修正
answer
CHANGED
@@ -21,9 +21,9 @@
|
|
21
21
|
$stmt = $pdo->prepare($username_sql);
|
22
22
|
$stmt->bindvalue(1, $id, PDO::PARAM_STR);
|
23
23
|
$stmt->execute();
|
24
|
-
$
|
24
|
+
$row = $stmt->fetch();
|
25
25
|
|
26
|
-
$user_name = $
|
26
|
+
$user_name = $row['user_name'];
|
27
27
|
} catch (PDOException $e) {
|
28
28
|
header('Content-Type: text/plain; charset=utf8', true, 500);
|
29
29
|
exit($e->getMessage());
|