代码上传后,底部多出一行,请大神们看下是代码有关问题还是
代码上传后,底部多出一行,请大神们看下是代码问题还是
<table align="center" width="100%" cellspacing="1" cellpadding="5" border="0" class="data">
<tbody>
<tr class="alt-row">
<th width="20%" align="center">线路国家</th>
<th width="20%" align="center">服务器功能</th>
<th width="30%" align="center">服务器地址</th>
<th width="15%" align="center">状态</th>
<th width="15%" align="center">协议</th>
</tr>
<?php
foreach($serverlist1 as $key=>$value)
{
?>
<tr>
<td><?php echo $value['serverarea']; ?></td>
<td><?php echo $value['description']; ?></td>
<td>可在<span class="STYLE1">用户中心-服务器列表</span>中查看</td>
<td><?php echo $value['status']; ?></td>
<td><span class="STYLE1">PPTP</span>/RL2TP</td>
</tr>
<?php
}
?>
</tbody>
</table>
<table align="center" width="100%" cellspacing="1" cellpadding="5" border="0" class="data">
<tbody>
<tr class="alt-row">
<td align="middle" rowspan="0"><div align="center"><img src="/images/server_des.jpg" style="margin-middle:0;" border="0"></div></td>
</tr>
</tbody>
</table>
</div>

最下面多出一行,可在用户中心-服务列表中查看 PPTP/RL2TP,请帮忙看下是什么原因
------解决方案--------------------
<?php
foreach($serverlist1 as $key=>$value)
{
if(empty($value['serverarea'])) continue; //加上这句
?>
<table align="center" width="100%" cellspacing="1" cellpadding="5" border="0" class="data">
<tbody>
<tr class="alt-row">
<th width="20%" align="center">线路国家</th>
<th width="20%" align="center">服务器功能</th>
<th width="30%" align="center">服务器地址</th>
<th width="15%" align="center">状态</th>
<th width="15%" align="center">协议</th>
</tr>
<?php
foreach($serverlist1 as $key=>$value)
{
?>
<tr>
<td><?php echo $value['serverarea']; ?></td>
<td><?php echo $value['description']; ?></td>
<td>可在<span class="STYLE1">用户中心-服务器列表</span>中查看</td>
<td><?php echo $value['status']; ?></td>
<td><span class="STYLE1">PPTP</span>/RL2TP</td>
</tr>
<?php
}
?>
</tbody>
</table>
<table align="center" width="100%" cellspacing="1" cellpadding="5" border="0" class="data">
<tbody>
<tr class="alt-row">
<td align="middle" rowspan="0"><div align="center"><img src="/images/server_des.jpg" style="margin-middle:0;" border="0"></div></td>
</tr>
</tbody>
</table>
</div>
最下面多出一行,可在用户中心-服务列表中查看 PPTP/RL2TP,请帮忙看下是什么原因
------解决方案--------------------
<?php
foreach($serverlist1 as $key=>$value)
{
if(empty($value['serverarea'])) continue; //加上这句
?>