How do I make comments posted to my site formatted to be separate from one another?

elgokr

New Member
I'm working on some code for my blog that displays comments. This is the code that outputs comments from the database:\[code\]$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++;}\[/code\]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.
 
Top