如果来自数据库的两个查询的比较结果为真,我想显示一个文本字段。但是文本字段没有显示。
我尝试制作单个的'if'块,但是它不起作用。
<?php
if ($row['status']=="in process" || $row['status']=="On the way" ){
if ($row['rider_status']=="pending"){ ?>
<input type="submit" name="accept" value="accept">
<?php } ?>
<input type="submit" name="decline" value="decline"><br>
<?php
if ($row['rider_status']=="accepted") { ?>
<input type="submit" name="on_the_way" value="Mark as On the way">
<?php }
if($row['rider_status']="on the way") {?>
<input type="text" name="otp" placeholder="Enter OTP" ><br>
<?php if($error=="wrong otp") echo "wrong OTP"; ?>
<input type="submit" name="delivered" value="Mark as Delivered"><?php
}
}
?>
我希望它显示文本字段。