Hi,
I want to add comments in mysite.That means in my site i have the photos,user will leave the comment for that photos and also I want to reject some comments.How to create comments..Now i am using database to store the comments like their msg and name posted timings.But i dont know how to display all comments below of that photo.Is there any other way to add comment?How to display all comments?How to reject some comments?

In your database, create a photoID column to identify to which photo the comment belongs.

k.I dont know How to display details from database.If i have 4 or 5 comments,how to display all comments..

create a table like comment id, commentname,photo id

for each comments u can save a photo id.
for a single photo u can add multiple comments..
i hope ,
this will solve ur issue or else let me know

S.I got.Now i am using datalist to display all comments.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.