still error

still error

          st=con.createStatement();
            int a=Integer.parseInt(txttrno.getText());
            String b=txttname.getText();
            String c=txtfrom.getText();
            String d=txtto.getText();
            String k=txtname.getText();
            String f=txtgen.getText();
            String g=txtadd.getText();
            int h=Integer.parseInt(txtphone.getText());
           rs=st.executeUpdate("insert into railway values("+a+",'"+b+"','"+c+"','"+d+"','"+e+"','"+f+"','"+g+"',"+h+")");
        }

con.close(); st.close(); rs.close(); }

wts wrong with above code?

View Answers

January 27, 2011 at 6:01 PM

Hello Friend,

Which type of error occurs?

Anyways post your full code with database table.

Thanks









Related Tutorials/Questions & Answers:
still error
still error  public NewJFrame() { initComponents(); try { Class.forName("java.sql.Driver"); con... second button which i,ve added in ma frame.... plzz smone help me to remove error
still error
still error  st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Advertisements
still error
still error   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
still error
still error  public NewJFrame() { initComponents(); try { Class.forName("java.sql.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","admin"); } catch(Exception e
Still getting the http 404 error - Java Beginners
is userid? Anyway, whatever I do, I still receive the http 404 error...saying...Still getting the http 404 error  Dear experts, I refer to the last solution given to me. A few clarification:- 1. I must stress
Itried all possible ways still getting thesame error
Itried all possible ways still getting thesame error  java.sql.SQLException: Io exception: Got minus one from a read call at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112
ModuleNotFoundError: No module named 'still'
ModuleNotFoundError: No module named 'still'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'still..., ModuleNotFoundError: No module named 'still' error will be solved. Thanks
Are data scientists still in demand?
Are data scientists still in demand?  Hi, I am beginner in Data...: Are data scientists still in demand? Try to provide me good examples or tutorials links so that I can learn the topic "Are data scientists still in demand
Is Hadoop still in demand?
Is Hadoop still in demand?  Hi, I am beginner in Data Science... still in demand? Try to provide me good examples or tutorials links so that I can learn the topic "Is Hadoop still in demand?". Also tell me which
Is data science still hot?
Is data science still hot?  Hi, I am beginner in Data Science... science still hot? Try to provide me good examples or tutorials links so that I can learn the topic "Is data science still hot?". Also tell me which
Is data science still valuable?
Is data science still valuable?  Hi, I am beginner in Data Science... science still valuable? Try to provide me good examples or tutorials links so that I can learn the topic "Is data science still valuable?". Also
-[UIPopoverController dealloc] reached while popover is still visible.
-[UIPopoverController dealloc] reached while popover is still visible.  Hi, I am getting following error in my application: -[UIPopoverController dealloc] reached while popover is still visible. How to solver this? Thanks
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version.ADS_TO_REPLACE_1 This type error also comes
error
error
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
error
"+it); } } this is my program i am getting an error saying cannot find symbol class stringADS
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner(System.in); int d,x,y; System.out.println("Enter the first number
Is data science still in demand 2020?
Is data science still in demand 2020?  Hi, I am beginner in Data...: Is data science still in demand 2020? Try to provide me good examples or tutorials links so that I can learn the topic "Is data science still in demand
Registration timer expired, but client is still registering!
Registration timer expired, but client is still registering!  Registration timer expired, but client is still registering
hello .. still doesn't run - Java Beginners
hello .. still doesn't run  Iam still having a prblem in running... Scanner another error is can not resolve symbol method setname(java.lang.String... r inserting values, why?? u have many basic error in the source code, i have
How Big Data will be still relevant in 2019
How Big Data will be still relevant in 2019  Hi, I want to know the future of Big Data in 2019. How Big Data will be still relevant in 2019? Can.... Big Data will be still relevant in 2019, 2020 and beyond. So, you can learn Big
Servlet signup still not working satisfactorialy - JSP-Servlet
Servlet signup still not working satisfactorialy  Hello sir thanks for your reply I tried following code given by you, What it has a problem as: I..., it still prints the same output: One of the Mandatary field is empty. What
defined actions in struts config still getting a HTTP 404 - Struts
defined actions in struts config still getting a HTTP 404  Hi guys, I am getting an Invalid Path requested error. Heres the code snippet from... exist and so do the Action classes. Still whenever I pass the .do action
runtime error
runtime error  still i am getting runtime error as:the specified dsn contains an architecture mismatch between the driver and application   Hi, This error is related to some OS related problem.ADS_TO_REPLACE_1 "dsn
Still have the same problem--First Example of Struts2 - Struts
Still have the same problem--First Example of Struts2  Hi I tried the example in the link. But still I am getting the same problem like as I tried my own example. Its not displaying the "Struts Welcome" message and also
error
error
error
error
error
error message
error message  Sir i make one form facility with insert,update,delete.i want to error msg if any type of the data is missing and display in error msg which of the data is misssing
Permgen error
Permgen error  hi how can i solve permgen error
installation error
installation error  hi, m getting an error like " semicolon found in the selected path".how to resolve this error? during installation of jdk 1.6
error log
error log  hi my requirement is validate xml and xsd in java.If there is an errors then i will log error and store into error table. so plz if any one knows send code urgent. error table details-------------- Table
MAin error
MAin error  Error while running hello program in another dir rather in bin. path is already set. java -version jdk1.6.0_24 no error while compilation but @ d tym of runnin error in main class is generated Exception in thread
JSF error
JSF error  some of the users are not able to update the db. getting the error "An Error Occurred: Error calling action method of component with id CreateorManageOffer:jidjsp134312524923 Caused by: java.lang.NullPointerException
404 error
into jboss->server-> default->deploy folder it doesn't shows any error. but when i run this application by using localhost:8080/webapp ,it shows 404 error how should i slove this error

Ads