Jump to content

[SOLVED] help with hr line please


justAnoob

Recommended Posts

I'm trying to echo a horizontal hr line inbetween each row that is echoed. Right now one line gets echoed underneath the last row. Where should I place the commented line below so that a line seperates each echoed row.

<?php
echo "<table border='0' CELLPADDING=5 STYLE='font-size:16px'>";
while ($row = mysql_fetch_array($sql))
{
echo "<tr><td align='center'>";
echo '<a href="viewitem.php?sendto='.$row['id'].'"><img src="' . $row['imgpath'] . '" width="125" border="0" alt=""></a>';
echo "</td><td align='center'>";
echo "".substr($row['item_name'],0,50),"";
echo "</td><td align='center'>";
echo substr($row['description'],0,50).'<a href="viewitem.php?sendto='.$row['id'].'" class="view_item"> ...more</a>';
echo "</td><td align='center'>";
echo substr($row['in_return'],0,50).'<a href="viewitem.php?sendto='.$row['id'].'" class="view_item"> ...</a>';
echo "</td><td align='center'>";
echo "</td></tr>";
}
echo "</table>";
echo '<hr width="550">';    /////////this line here
?>

Link to comment
https://forums.phpfreaks.com/topic/160091-solved-help-with-hr-line-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.