Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Connecting two Java classes for database

I was doing something on eclipse where I had connected it into xampp, I have two classes where one I have a log in / register page and a book & duration on the other. When I check the database this pops up, I can't figure out how to make it so it will only show as one entry .

The program always generates two outputs. One shows username and password and the other shows book borrowed and duration. And the blanks gets filled with nulls.

I was just wondering how can I connect the two classes so, that I can have one input instead of two.

Comments