我可以知道在我的表格中,如何在支付ID和更新付款列之间添加一列,但无法调试?我的代码如下。 注意:由于我没有足够的声望,我无法发布图片。HTML表格中的额外列
<td width="52">Bookng id</td>
<td width="78">Deposit</td>
<td width="149">Total_amt_paid</td>
<td width="149">Balance</td>
<td width="149">Payment status</td>
<td width="57">Card type</td>
<td width="62">Total price</td>
<td width="94">Payment id</td>
<td width="62"></td>
<td width="293">Update Payment</td>
</tr>
<?php do { ?>
<tr>
<th height="45"><?php echo $row_RecordsetUpdatePayment['Booking_id']; ?></th>
<th><?php echo $row_RecordsetUpdatePayment['Deposit']; ?></th>
<th><?php echo $row_RecordsetUpdatePayment['Total_amt_paid']; ?></th>
<th><?php echo $row_RecordsetUpdatePayment['Balance']; ?></th>
<th><?php echo $row_RecordsetUpdatePayment['Payment_status']; ?></th>
<th><?php echo $row_RecordsetUpdatePayment['Card_type']; ?></th>
<th><?php echo $row_RecordsetUpdatePayment['Total_price']; ?></th>
<th><?php echo $row_RecordsetUpdatePayment['Payment_id']; ?></th>
<th><?php if($row_RecordsetUpdatePayment['Payment_status'] == 'Fully Paid'){
echo "<th><span style='color:grey' href='UpdatePayment.php?Payment_id=".$row_RecordsetUpdatePayment['Payment_id']."'> Update</span></th>"; }
if($row_RecordsetUpdatePayment['Payment_status'] == 'Partial'){
echo "<th><a href='UpdatePayment.php?Payment_id=".$row_RecordsetUpdatePayment['Payment_id']."'> Update</a></th>";
}
?>
</th>
您在第一个tr中有一个额外的列(
嗨,如果我没有把额外的列,“更新付款”文本列将进入空白列,我的“更新”链接列将进入第二列,留下标题空白。它会变成2个分隔的列而不是一个列 –