*
The moose likes JSP and the fly likes Insert appropriate data against right question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Insert appropriate data against right question" Watch "Insert appropriate data against right question" New topic
Author

Insert appropriate data against right question

malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Insert appropriate data against right question