我正在尝试编写一个可以验证某人(1)是否正在签出他的名字的代码,但实际上并没有
<?php if($usrn['verified'] == 1): { ?>
<i class="fa fa-check-circle verified verified-sm showTooltip" title="Verified User" data-toggle="tooltip" data-placement="right"></i>
<?php } endif; ?>
<?php
$usern = protect($_GET['usern']);
$sql = mysql_query("SELECT * FROM purchasify_users WHERE usern='$usern' OR id='$id'");
if(mysql_num_rows($sql)==0) { $redirect = $web['url']."not_found"; header("Location: $redirect"); }
$row = mysql_fetch_array($sql);
?>
最佳答案
像这样更新您的代码
//假设$ usrn ['verified'] == 1;
<?php
$usrn['verified'] =1;
if($usrn['verified'] == 1) { ?>
<i class="fa fa-check-circle verified verified-sm showTooltip" title="Verified User" data-toggle="tooltip" data-placement="right"></i>
<?php } ?>
关于php - if语句(已验证),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44887617/