On my website you can post a comment, but I am unsure how to style them using CSS. I remember reading something about using ul and li tags but I can't figure it out. I want each individual comment to have a border, background color, etc. Here is the PHP:
$query = "SELECT * FROM catharsis";
$result = mysql_query($query);
$num = mysql_numrows($result);
mysql_close();
echo "<h4><center>Let it out.</center></h4>";
$i = 0;
while ($i < $num) {
$name = mysql_result($result,$num - $i,"message");
echo "$name<br>";
$i++;
}
What I'm trying to figure out is how to code this so that I can give a class to the echo "$name<br>";
and therefore style my comments with CSS.