I'm working on some code for my blog that displays comments. This is the code that outputs comments from the database:
$i = 0;
while ($i < $num) {
$name = mysql_result($result,$num - $i,"name");
$dream = mysql_result($result,$num - $i,"dream");
echo "$name<br>$dream<br>";
$i++;
}
I'm currently using CSS to apply a style to the entire div in which this bit of php resides. This lets me format all the comments posted, but I want to format each comment individually though uniformly. For example, I can use CSS to put a border around all the comments, but what I want is the same border around each comment to separate the comments. Any ideas? Help is appreciated.