I am learning
JDBC, completely new to it. I know MySQL very well. I have a search form in my
applet (tab 2), where I search for food. And when I click search, I want it to search for the exact food from the Database and return the table contents of that particular row alone. But I am not getting any result. Only an empty frame opens. But when I put the query as "SELECT * FROM table", I am getting the complete table. But I want only one row, the one that is searched for. Can anyone please tell me where I am going wrong? Here's my code:
My table has the following fields: id, name, category, origin, taste, type.
Can anyone please check out the code on your comp, try it out and help me with it?
Thanks