回答編集履歴
1
追記
answer
CHANGED
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
```
|
|
4
4
|
$stmt = $this->dbh->prepare(" SELECT user_name,password WHERE user_name = :user_name ");
|
|
5
|
-
```
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
エラーメッセージは必ずきちんと読みましょう
|
|
8
|
+
|
|
9
|
+
[google翻訳](https://translate.google.com/?client=tw-ob#en/ja/You%20have%20an%20error%20in%20your%20SQL%20syntax;%20check%20the%20manual%20that%20corresponds%20to%20your%20MariaDB%20server%20version%20for%20the%20right%20syntax%20to%20use%20near%20'WHERE%20user_name%20')
|
|
10
|
+
> SQL構文にエラーがあります。 'WHERE user_name'付近で使用する正しい構文については、使用しているMariaDBサーバーのバージョンに対応するマニュアルを調べてください。
|