Hi, I am using TableModel to connect to a database and display the results. I am unable to display the table. It doesn't display anything. Below is the code from the TableModel I am using to connect to database. Could anyone help me find the errors please. any help would be ggreatly appreciated. Thanks
Renee Zhang
Ranch Hand
Joined: Sep 10, 2001
Posts: 72
posted
0
Move con.close(); outside while loop at first. You can't close the connection before you get all the data.