Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Colombo
Red Hat Certified System Administrator (RHCSA) - RHEL 10
Sanjeewani95
Updated:
Friday at 7:43 PM
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Thursday at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Wednesday at 9:58 PM
Ad icon
Video Content Creator
pramukag
Updated:
Jun 28, 2026
Ad icon
QA Engineer Intern
pramukag
Updated:
Jun 28, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Chat!
EK Mega Party - Season 04 !!
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="geethq" data-source="post: 7254242" data-attributes="member: 4364"><p>if (e.getSource() == SearchB ) {</p><p></p><p> String DVDtag=L22.getText();</p><p> String DVDno=No21.getText();</p><p></p><p> if(No21.getText().equals("") && L22.getText().equals("") ){</p><p> JOptionPane.showMessageDialog(null,"You have not entered a DVD Number ","",JOptionPane.ERROR_MESSAGE);}</p><p> else{</p><p> </p><p> if(No21.getText().equals("")) {</p><p> try {</p><p> String str="SELECT * FROM DVD WHERE SearchTag='"+DVDtag+"'";</p><p> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");</p><p> //Connection con = DriverManager.getConnection(DbaseCon, "","");</p><p> Connection con = DriverManager.getConnection("jdbc<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":o" title="Eek! :o" loading="lazy" data-shortname=":o" />dbc<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" />VDInfo");</p><p> Statement stmt = con.createStatement();</p><p> ResultSet rs=stmt.executeQuery(str);</p><p> if(rs.next()){</p><p></p><p> Type= rs.getString(1);</p><p> Title=rs.getString(2);</p><p> DVDNo=rs.getString(3);</p><p> DateCRTD= rs.getString(4);</p><p> Content1=rs.getString(5);</p><p> Content2= rs.getString(6);</p><p> Content3= rs.getString(7);</p><p> Content4=rs.getString(8);</p><p> Content5= rs.getString(9);</p><p> Content6=rs.getString(10);</p><p> Content7= rs.getString(11);</p><p> Content8= rs.getString(12);</p><p> Content9=rs.getString(13);</p><p> Content10= rs.getString(14);</p><p> Notes1=rs.getString(15);</p><p> Notes2= rs.getString(16);</p><p> SearchTag= rs.getString(17);</p><p></p><p></p><p> L4.setText(Type);</p><p> L5.setText(Title);</p><p> L6.setText(DateCRTD);</p><p> L7.setText(Content1);</p><p> L30.setText(Content2);</p><p> L31.setText(Content3);</p><p> L32.setText(Content4);</p><p> L33.setText(Content5);</p><p> L34.setText(Content6);</p><p> L35.setText(Content7);</p><p> L36.setText(Content8);</p><p> L37.setText(Content9);</p><p> L38.setText(Content10);</p><p> L8.setText(Notes1);</p><p> L40.setText(Notes2);</p><p> L22.setText(SearchTag);</p><p> No21.setText(DVDNo);</p><p> }</p><p></p><p> else{</p><p>JOptionPane.showMessageDialog(null,"Invalid Search tag , Please try again-(ex: Smallville or PrisonBreak} ","",JOptionPane.ERROR_MESSAGE);</p><p> // L22.setText("");</p><p> No21.setText("");</p><p> L4.setText("");</p><p> L5.setText("");</p><p> L6.setText("");</p><p> L7.setText("");</p><p> L30.setText("");</p><p> L31.setText("");</p><p> L32.setText("");</p><p> L33.setText("");</p><p> L34.setText("");</p><p> L35.setText("");</p><p> L36.setText("");</p><p> L37.setText("");</p><p> L38.setText("");</p><p> L8.setText("");</p><p> L40.setText(""); }</p><p> con.commit();</p><p> stmt.close();</p><p> con.close();</p><p></p><p> } catch(Exception ex) {</p><p> ex.printStackTrace();</p><p> }</p><p> }</p><p> else{</p><p> L22.setText("");</p><p></p><p> if( L22.getText().equals("") )</p><p> {</p><p></p><p> try {</p><p> String str="SELECT * FROM DVD WHERE DVDNo='"+DVDno+"'";</p><p> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");</p><p> //Connection con = DriverManager.getConnection(DbaseCon, "","");</p><p> Connection con = DriverManager.getConnection("jdbc<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":o" title="Eek! :o" loading="lazy" data-shortname=":o" />dbc<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" />VDInfo");</p><p> Statement stmt = con.createStatement();</p><p> ResultSet rs=stmt.executeQuery(str);</p><p> if(rs.next()){</p><p></p><p> Type= rs.getString(1);</p><p> Title=rs.getString(2);</p><p> DVDNo=rs.getString(3);</p><p> DateCRTD= rs.getString(4);</p><p> Content1=rs.getString(5);</p><p> Content2= rs.getString(6);</p><p> Content3= rs.getString(7);</p><p> Content4=rs.getString(8);</p><p> Content5= rs.getString(9);</p><p> Content6=rs.getString(10);</p><p> Content7= rs.getString(11);</p><p> Content8= rs.getString(12);</p><p> Content9=rs.getString(13);</p><p> Content10= rs.getString(14);</p><p> Notes1=rs.getString(15);</p><p> Notes2= rs.getString(16);</p><p> SearchTag= rs.getString(17);</p><p></p><p></p><p> L4.setText(Type);</p><p> L5.setText(Title);</p><p> L6.setText(DateCRTD);</p><p> L7.setText(Content1);</p><p> L30.setText(Content2);</p><p> L31.setText(Content3);</p><p> L32.setText(Content4);</p><p> L33.setText(Content5);</p><p> L34.setText(Content6);</p><p> L35.setText(Content7);</p><p> L36.setText(Content8);</p><p> L37.setText(Content9);</p><p> L38.setText(Content10);</p><p> L8.setText(Notes1);</p><p> L40.setText(Notes2);</p><p> L22.setText(SearchTag);</p><p> No21.setText(DVDNo);</p><p> }</p><p></p><p> else{</p><p>JOptionPane.showMessageDialog(null,"Invalid Number , Please try again-(ex: 002 or 078 or 180} ","",JOptionPane.ERROR_MESSAGE);</p><p> L22.setText("");</p><p> No21.setText("");</p><p> L4.setText("");</p><p> L5.setText("");</p><p> L6.setText("");</p><p> L7.setText("");</p><p> L30.setText("");</p><p> L31.setText("");</p><p> L32.setText("");</p><p> L33.setText("");</p><p> L34.setText("");</p><p> L35.setText("");</p><p> L36.setText("");</p><p> L37.setText("");</p><p> L38.setText("");</p><p> L8.setText("");</p><p> L40.setText(""); }</p><p> con.commit();</p><p> stmt.close();</p><p> con.close();</p><p></p><p> } catch(Exception ex) {</p><p> ex.printStackTrace();</p><p> }</p><p> </p><p> }</p><p></p><p> else{</p><p>JOptionPane.showMessageDialog(null,"Invalid Number or Search tag , Please try again-(ex: 002 or 078 or 180 ex: Smallville or PrisonBreak} ","",JOptionPane.ERROR_MESSAGE);</p><p> L22.setText("");</p><p> // No21.setText("");</p><p> L4.setText("");</p><p> L5.setText("");</p><p> L6.setText("");</p><p> L7.setText("");</p><p> L30.setText("");</p><p> L31.setText("");</p><p> L32.setText("");</p><p> L33.setText("");</p><p> L34.setText("");</p><p> L35.setText("");</p><p> L36.setText("");</p><p> L37.setText("");</p><p> L38.setText("");</p><p> L8.setText("");</p><p> L40.setText("");</p><p> }</p><p> }</p><p></p><p> }</p><p></p><p> }</p><p> </p><p></p><p> if (e.getSource() == UpdateB) {</p><p></p><p> String DVDno=No21.getText();</p><p></p><p> if( L4.getText().equals("") &&</p><p> L5.getText().equals("") && L6.getText().equals("") &&</p><p> L7.getText().equals("") && L8.getText().equals(""))</p><p> {JOptionPane.showMessageDialog(null,"Nothing Updated","",JOptionPane.ERROR_MESSAGE);</p><p> }</p><p> </p><p> else {</p><p> String T2=L4.getText();</p><p> String T3=L5.getText();</p><p> String T4=L6.getText();</p><p> String T5=L7.getText();</p><p> String T7=L30.getText();</p><p> String T8=L31.getText();</p><p> String T9=L32.getText();</p><p> String T10=L33.getText();</p><p> String T11=L34.getText();</p><p> String T12=L35.getText();</p><p> String T13=L36.getText();</p><p> String T14=L37.getText();</p><p> String T15=L38.getText();</p><p> String T6=L8.getText();</p><p> String T17=L40.getText();</p><p> String T18=L22.getText();</p><p></p><p> try {</p><p> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");</p><p> //Connection con = DriverManager.getConnection(DbaseCon, "","");</p><p> Connection con = DriverManager.getConnection("jdbc<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite9" alt=":o" title="Eek! :o" loading="lazy" data-shortname=":o" />dbc<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" />VDInfo");</p><p> Statement stmt = con.createStatement();</p><p>stmt.executeUpdate("UPDATE DVD SET Type='" + T2 + "',Title='" + T3 + "',DateCrtd='" + T4 + "',Content1='" + T5 + "',Content2='" + T7 + "',Content3='" + T8 + "',Content4='" + T9 + "',Content5='" + T10 + "',Content6='" + T11 + "',Content7='" + T12 + "',Content8='" + T13 + "',Content9='" + T14 + "',Content10='" + T15 + "',Notes1='" + T6 + "',Notes2='" + T17 + "',SearchTag='" + T18 + "'" +</p><p> " WHERE DVDNo = '" + DVDno + "'");</p><p></p><p> JOptionPane.showMessageDialog(null, "Successfully Updated");</p><p> con.commit();</p><p> stmt.close();</p><p> con.close();</p><p></p><p> L22.setText("");</p><p> L4.setText("");</p><p> L5.setText("");</p><p> L6.setText("");</p><p> L7.setText("");</p><p> L30.setText("");</p><p> L31.setText("");</p><p> L32.setText("");</p><p> L33.setText("");</p><p> L34.setText("");</p><p> L35.setText("");</p><p> L36.setText("");</p><p> L37.setText("");</p><p> L38.setText("");</p><p> L8.setText("");</p><p> L40.setText("");</p><p></p><p> }catch(Exception ex) {</p><p> ex.printStackTrace();</p><p> }</p><p> }</p><p> }</p><p> if (e.getSource() == BackB) {</p><p> System.exit(0);</p><p> }</p><p> }</p><p>}</p></blockquote><p></p>
[QUOTE="geethq, post: 7254242, member: 4364"] if (e.getSource() == SearchB ) { String DVDtag=L22.getText(); String DVDno=No21.getText(); if(No21.getText().equals("") && L22.getText().equals("") ){ JOptionPane.showMessageDialog(null,"You have not entered a DVD Number ","",JOptionPane.ERROR_MESSAGE);} else{ if(No21.getText().equals("")) { try { String str="SELECT * FROM DVD WHERE SearchTag='"+DVDtag+"'"; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //Connection con = DriverManager.getConnection(DbaseCon, "",""); Connection con = DriverManager.getConnection("jdbc:odbc:DVDInfo"); Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery(str); if(rs.next()){ Type= rs.getString(1); Title=rs.getString(2); DVDNo=rs.getString(3); DateCRTD= rs.getString(4); Content1=rs.getString(5); Content2= rs.getString(6); Content3= rs.getString(7); Content4=rs.getString(8); Content5= rs.getString(9); Content6=rs.getString(10); Content7= rs.getString(11); Content8= rs.getString(12); Content9=rs.getString(13); Content10= rs.getString(14); Notes1=rs.getString(15); Notes2= rs.getString(16); SearchTag= rs.getString(17); L4.setText(Type); L5.setText(Title); L6.setText(DateCRTD); L7.setText(Content1); L30.setText(Content2); L31.setText(Content3); L32.setText(Content4); L33.setText(Content5); L34.setText(Content6); L35.setText(Content7); L36.setText(Content8); L37.setText(Content9); L38.setText(Content10); L8.setText(Notes1); L40.setText(Notes2); L22.setText(SearchTag); No21.setText(DVDNo); } else{ JOptionPane.showMessageDialog(null,"Invalid Search tag , Please try again-(ex: Smallville or PrisonBreak} ","",JOptionPane.ERROR_MESSAGE); // L22.setText(""); No21.setText(""); L4.setText(""); L5.setText(""); L6.setText(""); L7.setText(""); L30.setText(""); L31.setText(""); L32.setText(""); L33.setText(""); L34.setText(""); L35.setText(""); L36.setText(""); L37.setText(""); L38.setText(""); L8.setText(""); L40.setText(""); } con.commit(); stmt.close(); con.close(); } catch(Exception ex) { ex.printStackTrace(); } } else{ L22.setText(""); if( L22.getText().equals("") ) { try { String str="SELECT * FROM DVD WHERE DVDNo='"+DVDno+"'"; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //Connection con = DriverManager.getConnection(DbaseCon, "",""); Connection con = DriverManager.getConnection("jdbc:odbc:DVDInfo"); Statement stmt = con.createStatement(); ResultSet rs=stmt.executeQuery(str); if(rs.next()){ Type= rs.getString(1); Title=rs.getString(2); DVDNo=rs.getString(3); DateCRTD= rs.getString(4); Content1=rs.getString(5); Content2= rs.getString(6); Content3= rs.getString(7); Content4=rs.getString(8); Content5= rs.getString(9); Content6=rs.getString(10); Content7= rs.getString(11); Content8= rs.getString(12); Content9=rs.getString(13); Content10= rs.getString(14); Notes1=rs.getString(15); Notes2= rs.getString(16); SearchTag= rs.getString(17); L4.setText(Type); L5.setText(Title); L6.setText(DateCRTD); L7.setText(Content1); L30.setText(Content2); L31.setText(Content3); L32.setText(Content4); L33.setText(Content5); L34.setText(Content6); L35.setText(Content7); L36.setText(Content8); L37.setText(Content9); L38.setText(Content10); L8.setText(Notes1); L40.setText(Notes2); L22.setText(SearchTag); No21.setText(DVDNo); } else{ JOptionPane.showMessageDialog(null,"Invalid Number , Please try again-(ex: 002 or 078 or 180} ","",JOptionPane.ERROR_MESSAGE); L22.setText(""); No21.setText(""); L4.setText(""); L5.setText(""); L6.setText(""); L7.setText(""); L30.setText(""); L31.setText(""); L32.setText(""); L33.setText(""); L34.setText(""); L35.setText(""); L36.setText(""); L37.setText(""); L38.setText(""); L8.setText(""); L40.setText(""); } con.commit(); stmt.close(); con.close(); } catch(Exception ex) { ex.printStackTrace(); } } else{ JOptionPane.showMessageDialog(null,"Invalid Number or Search tag , Please try again-(ex: 002 or 078 or 180 ex: Smallville or PrisonBreak} ","",JOptionPane.ERROR_MESSAGE); L22.setText(""); // No21.setText(""); L4.setText(""); L5.setText(""); L6.setText(""); L7.setText(""); L30.setText(""); L31.setText(""); L32.setText(""); L33.setText(""); L34.setText(""); L35.setText(""); L36.setText(""); L37.setText(""); L38.setText(""); L8.setText(""); L40.setText(""); } } } } if (e.getSource() == UpdateB) { String DVDno=No21.getText(); if( L4.getText().equals("") && L5.getText().equals("") && L6.getText().equals("") && L7.getText().equals("") && L8.getText().equals("")) {JOptionPane.showMessageDialog(null,"Nothing Updated","",JOptionPane.ERROR_MESSAGE); } else { String T2=L4.getText(); String T3=L5.getText(); String T4=L6.getText(); String T5=L7.getText(); String T7=L30.getText(); String T8=L31.getText(); String T9=L32.getText(); String T10=L33.getText(); String T11=L34.getText(); String T12=L35.getText(); String T13=L36.getText(); String T14=L37.getText(); String T15=L38.getText(); String T6=L8.getText(); String T17=L40.getText(); String T18=L22.getText(); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //Connection con = DriverManager.getConnection(DbaseCon, "",""); Connection con = DriverManager.getConnection("jdbc:odbc:DVDInfo"); Statement stmt = con.createStatement(); stmt.executeUpdate("UPDATE DVD SET Type='" + T2 + "',Title='" + T3 + "',DateCrtd='" + T4 + "',Content1='" + T5 + "',Content2='" + T7 + "',Content3='" + T8 + "',Content4='" + T9 + "',Content5='" + T10 + "',Content6='" + T11 + "',Content7='" + T12 + "',Content8='" + T13 + "',Content9='" + T14 + "',Content10='" + T15 + "',Notes1='" + T6 + "',Notes2='" + T17 + "',SearchTag='" + T18 + "'" + " WHERE DVDNo = '" + DVDno + "'"); JOptionPane.showMessageDialog(null, "Successfully Updated"); con.commit(); stmt.close(); con.close(); L22.setText(""); L4.setText(""); L5.setText(""); L6.setText(""); L7.setText(""); L30.setText(""); L31.setText(""); L32.setText(""); L33.setText(""); L34.setText(""); L35.setText(""); L36.setText(""); L37.setText(""); L38.setText(""); L8.setText(""); L40.setText(""); }catch(Exception ex) { ex.printStackTrace(); } } } if (e.getSource() == BackB) { System.exit(0); } } } [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom