Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Insert appropriate data against right question

 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am trying to make a simple question/answer JSP web app.
By using three tables, tblQuestions , tblAnswers , tblUsers.

I am able to show all the data from the tbQuestions, but could not find a way to insert the appropriate answer against the desired question. When I click the "Answer this" all I got the last entry from the tblQuestion.

I want to know how to give answer to the right question, not the last one




Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic