Im developing e-commerce website wherein the costumer can leave comment in a specific product.. and im getting crazy how could i set the product id and user who leave comment on that specific product. the comment must be read by the other user. please help!

You need a table in database with a structure like this:

id, idproduct, iduser, comment

comment must be a type text field.
In this way you can link the product with comments and display the users who leave 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.