enter image description here在SQL中插入行之后,数据存储在SQL表中,但未显示在WordPress管理页面中
<?php
$sql = "SELECT * FROM loan_enquiry order by id desc";
$status = $wpdb->get_results($sql);
$rowNum = 1;
foreach($status as $loanmem) { ?>
<tr>
<td class = "list">
<?php echo $rowNum++ ?>
</td> <?php $id = $loanmem->id; ?>
<td style = "width: 300px;">
<?php echo $loanmem->name; ?>
</td>
<td style = "width: 300px;">
<?php echo $loanmem->dateofbirth; ?>
</td>
<td style = "width: 300px;">
<?php echo $loanmem->source; ?>
</td>
<td style = "width: 300px;">
<?php echo $loanmem->status; ?>
</td> .
</tr>
<?php } ?>