Here's an example:
$res = mysql_query("SELECT * FROM `table`");
$count = 0;
$num = mysql_num_rows($res);
while ($r = mysql_fetch_array($res))
{
$count++;
// echo some data:
echo $r['something'];
if ($count < $num)
{
echo "<hr/>";
}
}
SikoSoft
Junior Poster in Training
55 posts since May 2010
Reputation Points: 14
Solved Threads: 8
Skill Endorsements: 0
Question Answered as of 2 Years Ago by
SikoSoft
and
scaiferw