In Java programimng, how do I use Java Database to connect to a database I have online through a hosting account?
I need to connect and do a select statement to display the data.
Thanks that looks like the right direction for what I need. I am using MYSQL.
I'm not sure how to implement your code there. Is that a function already included in Java I need to call or is that something I should copy and paste into my code?
Hi, did you check out the link I gave you? You have to write your own functions to connect to the database but JAVA has lots of API for you. say this "DriverManager.getConnection"
Okay, I've checked the page several times. I'm just not sure what to do. What do I need to import firstly. Secondly, I put DriverManager.getConnection in my main method.
Then where do I put my function to connect. Do I write it as it's own class or as it's own method. Then after that, what else is missing to make it run? I still have a lot of errors.
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?
These are the countries currently available for verification, with more to come!