I want to disable pay button when status paid.
My Code:
<table id="simple-table" class="table table-bordered table-hover">
<thead>
<tr>
<th width="30%">Month </th>
<th width="20%">DPS Amount</th>
<th width="20%">Status</th>
<th width="30%">Options</th>
</tr>
</thead>
<tbody>
<?php
$acc=$_GET['acc'];
$result = $db->prepare("SELECT * FROM dps_schedule WHERE account_number= :userid");
$result->bindParam(':userid', $acc);
$result->execute();
$counter = 0;
for($i=0; $row = $result->fetch(); $i++){
?>
<tr class="record">
<td>Month-<?php echo ++$counter; ?></td>
<td><?php echo $row['dps_payment']; ?></td>
<td class="status"><?php echo $row['status']; ?></td>
<td class="dis"><a rel="facebox" href="dps_installment.php?id=<?php echo $row['id']; ?>"><button class="btn btn-success btn-mini"><i class="icon-edit"></i> PAY </button></a></td>
</tr>
<?php
}
?>
</tbody>
</table>
Code View:
Now want to disable pay button when status paid.