Any one pleasse help me, really urgent

Dear friends and every one,
How to store a array of datas into database.....i am print in the next page but not able to store....
i will show you the codings, please give your valuable suggestions
<%
String s1=(String)session.getAttribute("eid");
String s3[]=request.getParameterValues("language");
int j=0;
try {
for (int i = 0; i < s3.length; i++)
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:langskill");
PreparedStatement pStmt = con.prepareStatement("update lang set(language) values (?) where eid=? ");
// pStmt.setString(2, s3);
pStmt.setString(1, s1);
pStmt.execute();
catch(Exception e)
System.out.println(e);
%>
<%
if(j>0)
%>
datas are updated
<%
else
%>
datas are not updated
<%
%>
Thanxs in advance

Please use code tags ( select all relevant text and click the code button on top of the message window while posting ) it makes things easier for everyone.
What exactly is the problem? What exception are you getting? Please post the stack trace.
As far as I can tell, you're not setting the second placeholder in your preparedStatement and also, is your SQL query for update correct? I'm not sure about the syntax but it seems to be wrong to me.
Edit:
This is repost from here: http://forum.java.sun.com/thread.jspa?threadID=5166401&tstart=0
Message was edited by:
nogoodatcoding

Similar Messages

Maybe you are looking for

  • Default Settlement Rule for Project Definition

    Hi Viewers, I am having the requirement that, when i create the project, automatically system should create the AUC asset in the project level. I tried and I am able to make at WBS element level. I need at Project level. I need help on this... Regard

  • (Adobe Installer) Launching Creative Cloud Desktop taking too long

    This is my first post so I do not know if this is the right section to post this or not. I am installing Creative Cloud Student edition and the adobe installer has been stuck on "launching creative cloud desktop" for about 3-4 hours now, and I don't

  • Call logs disappearing

    My call log is set to record "all calls" .  For some reason the log is occasionally wiped clean.  Info on the phone says these calls are supposed to stay recorded for 30 days.  Any ideas as to what is happening? Faith means sometimes losing sight of

  • Sporadic bug?

    I see this pop up once in about 4 debugging trials when working on my recording video application: I'm using the new lccs_Playbackfix.swc and flex 4.1.  Right now my goal is to create a visual indicator to whether the current video is being recorded

  • Create PDF iPad ap

    Does this program allow one to open workflow pdf forms and to enter data/save to I books or documents to go?


HashFlare