Given is the simple code to add ip address in the table named ip_table which it creates.. but i am unable to successfully add the data into the table.. i am getting the error as "too few parameters. expected 1"
posted 9 years ago
There is a syntax error in your query //statement.execute("insert into ip_table values(address)")
this should be string query = "insert into ip_table values('" + address + "')"; statement.execute(query);
Regards Roy [ March 08, 2007: Message edited by: Roy Simon ]