Results 1 to 2 of 2
  1. #1
    desiretolearn is offline Member
    Join Date
    Mar 2014
    Posts
    4
    Rep Power
    0

    Default jdbc update based on html page

    hi
    i have a page where username is displayed
    i want to uodate my table based on the page value i. e username
    how can this be done
    String sql;
    sql = "UPDATE test SET username=? WHERE password=?";
    PreparedStatement statement = conn.prepareStatement(sql);
    statement.setString(1, "jumbomail@com");
    statement.setString(2, "password");
    help me

  2. #2
    jashburn is offline Senior Member
    Join Date
    Feb 2014
    Posts
    219
    Rep Power
    1

    Default Re: jdbc update based on html page

    Hi. Take a look at my previous post at Login Page with the startup. The tutorials I listed should give you what you need to do this.

Similar Threads

  1. Update the given JDBC based TTL cache codes:
    By Xs Ali in forum Hibernate
    Replies: 0
    Last Post: 08-04-2012, 12:41 PM
  2. Update arraylist based on some conditions
    By emyk in forum Advanced Java
    Replies: 11
    Last Post: 04-13-2011, 05:18 PM
  3. Error in JDBC batch update
    By murali23krishna in forum JDBC
    Replies: 8
    Last Post: 02-21-2011, 11:42 AM
  4. Mysql/JDBC update query problem
    By thelinuxguy in forum Advanced Java
    Replies: 3
    Last Post: 02-11-2009, 09:56 PM
  5. NetBeans, html won't update
    By yuriythebest in forum Java Applets
    Replies: 14
    Last Post: 11-09-2008, 02:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •