This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
iam going to retrieve ticket values from database to jsp page. Now i want to book the ticket so i will select the ticket using checkbox..the selected ticket value should be insert into mysql db..i tried to insert but its not inserting can anyone help me.. my code is here below :
Class.forName("org.gjt.mm.mysql.Driver"); con=DriverManager.getConnection("jdbc:mysql://192.168.1.201:3306/e_busticketing","root","password"); st = con.createStatement(); out.println("connected"); String sql="select seat_no from e_busticketing.seat_mast where bus_id=1001"; rs=st.executeQuery(sql);