質問編集履歴
3
マークアップ
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
1
|
+
sql if文の条件分岐
|
2
|
-
|
3
|
-
|
4
2
|
|
5
3
|
$user_id = '0';
|
6
4
|
|
2
マークアップ
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
```ここに言語を入力
|
2
2
|
|
3
3
|
|
4
4
|
|
1
コードが違っていたので変更しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
$user_id = '0';
|
6
6
|
|
7
|
-
$sql = "SELECT tusr_id FROM tusr_user WHERE tusr_account
|
7
|
+
$sql = "SELECT tusr_id FROM tusr_user WHERE tusr_account = ?";
|
8
8
|
|
9
9
|
$sql = "SELECT tusr_id FROM tusr_user WHERE tusr_account IN (SELECT tusr_account FROM tdmn_domain WHERE tdmn_add_domain = ?)";
|
10
10
|
|
@@ -30,6 +30,8 @@
|
|
30
30
|
|
31
31
|
}
|
32
32
|
|
33
|
+
}
|
34
|
+
|
33
35
|
|
34
36
|
|
35
37
|
|