数据未反映Wordpress管理页面

时间:2019-05-10 09:10:55

标签: php wordpress

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 } ?>

0 个答案:

没有答案