The printout on the second code is here:
echo '<table width=100%>';
foreach($poster as $top_user)
{
echo '<tr>
<td align="left" width=100%>' . $top_user['link'] . '</td>
<td align="left">| '. $top_user['count'] . '</td>
</tr>';
}
echo '</table>';
You have two choices. Either you can remove the table formatting and add one hr or you can add two hrs -- one to each table cell. Either way, it's just basic html.
echo '<table width=100%>';
foreach($poster as $top_user)
{
echo '<tr>
<td align="left" width=100%>' . $top_user['link'] . '<hr /></td>
<td align="left">| '. $top_user['count'] . '<hr /></td>
</tr>';
}
echo '</table>';
or
foreach($poster as $top_user)
{
echo '$top_user['link'] . ' | '. $top_user['count'] . '<hr />';
}