Now it will show like
comment 1.
comment 2.
comment 3. etc etc
i want to add 'delete' option that i can delete any comment.
it displays like
comment 1. Delete
comment 2. Delete
comment 3. Delete
So that when i click on delete, it simply deletes the comment and print the remaining comments.
Its very simple. i hope you understand.
Quote
$result = mysql_query("select * from comments order by id desc limit 10");
//the while loop
while($r=mysql_fetch_array($result))
{
//getting each variable from the table
echo $r["comment"];
echo "<br />";
}
//the while loop
while($r=mysql_fetch_array($result))
{
//getting each variable from the table
echo $r["comment"];
echo "<br />";
}
