Hi all,
My thanks in advance for all help given. I am trying to code a bit of a java app up, and I am sort of learning as I go, so please bear with me for my lack of experence.
I set a table in a database using the following syntax:
CREATE TABLE Instructor(
FirstName...
Thanks for all the posts guys...
...they are very welcome. I am still learning to program in Java (messing around with JDBC and MYSQL at the moment). Its good to know that there are people like your selves out there willing to try and help me out.
My thanks for all your time and effort...
...my appologies, thanks for trying...
...not sure what you mean by debugging the application. I tried running it (via netbeans), but not sure what you mean by the debugger???
B14... aka... Marky Mark... the frozen monkey in the server room...
ok heres the full class and what I am trying to execute in the main method:
package instructor;
import java.util.*;
/**** @author MNewton
*/
public class Person {
private String First_Name;
private String Surname;
private String Title;
private Calendar dob;
/**...
Appologies,
the dob variable is an object of class Calendar, the rest are Strings, and its when populating the dob variable which causes the problem (well thats what netbeans points to anyway...)
thanks,
B14... aka... Marky Mark... the frozen monkey in the server room...
Hi all,
Thanks in advance for all help / posts on this one.
I have the following bit of code :
public void Person_create(String first_name, String surname, String title, int dob_year, int dob_day, int dob_month){
///load attributes into the class from the method above...
Hi guys,
thanks again for the all the replys. As discusssed above, it was a problem with the driver not being put into the class path correctly.
I can now connect to the databases.
Thanks again for all your help,
B14... aka... Marky Mark... the frozen monkey in the server room...
Just changed the class again:
package music_connect;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class Connect {
public static void main(String[] args){
try{
System.out.println("loading driver")...
Hi all,
This is a pretty well, how can put it, simple question.
Do the Primary key and foriegn keys have to share the same column name under mysql?
Thanks,
B14... aka... Marky Mark... the frozen monkey in the server room...
Hi all,
I am in the process of changing some Oracle sql scripts to work with mysql. Anyhow I have this script that creates tables, I think I have converted most of it to work. I get this problem when I run the <b>source</b> command to execute the sql script, when I try to do the following...
Hi All,
I have been having issues with this Monitor. Essentially I bought this second user system from my work, quite a good spec for the price, which is for a friend. Unfortunatly there was no VDU included.
Anyway my friend managed to source an old Compaq 470 monitor, its about 14inch...
...PC so a quick of run of spybot s & D seemed to sort this out.
Another thing that seemed to improve things was adding the URL as a trusted site *.companydomain.extention seemed to work quite nicely.
I also found that resetting internet options to factory defaults on either IE or Firefox...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.