回答編集履歴
2
)が不要だったので外した
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<input id="hoge" name="hoge" type="text" style="width:100px"
|
4
4
|
|
5
|
-
value="<?= $row['columnname'] ?>" <?php if($row['fuga']
|
5
|
+
value="<?= $row['columnname'] ?>" <?php if($row['fuga'] === 'aaa') echo 'disabled'?>>
|
6
6
|
|
7
7
|
```
|
8
8
|
|
1
== を === にした。==でも動くだろうが
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<input id="hoge" name="hoge" type="text" style="width:100px"
|
4
4
|
|
5
|
-
value="<?= $row['columnname'] ?>" <?php if($row['fuga']) == 'aaa') echo 'disabled'?>>
|
5
|
+
value="<?= $row['columnname'] ?>" <?php if($row['fuga']) === 'aaa') echo 'disabled'?>>
|
6
6
|
|
7
7
|
```
|
8
8
|
|