I wrote a program to insert user details from a website into a database table. all the program is working fine except a thing, which is, the database is not taking the correct value although i am getting the correct value at the console..
here is my code and details:
and the line from where i am inserting the data into database is:
the above code is in separate class and there is another class where i defined setter getter methods:
dto is the object of the class in which i have defined setter getter methods.
now the output i m getting on console is:
Address : Collinsville, IL
but on the database table it is entering oly first line of the output at Address column... like- Collinsville, IL
please help me out to get the correct and full data in the table..