不在输入类型“供应商”中显示行

时间:2018-02-02 03:47:49

标签: php html mysql

嗨,为什么“供应商”没有显示,而连续的其他数据在输入类型中显示。这是一个更新页面,我的代码谢谢。

<?php
include ('dbcon.php');

$users_id = $_GET['id'];
$SelSql = "SELECT * FROM supplier WHERE id='$users_id'";
$result = mysqli_query($conn, $SelSql);

if (mysqli_num_rows($result) > 0) {

while ($row = mysqli_fetch_assoc($result)){
$supplier   =   $row['supplier']; 
$status     =   $row['status'];
$remarks    =   $row['remarks'];
}

}else {
$alertMessage="<div class='alert alert-danger' role='alert'>Theres Nothing to see Here.</div>";
}

?>


<input class="form-control" type="text" placeholder="Supplier" name="supplier" value="<?php echo $supplier; ?>">

0 个答案:

没有答案