Jump to content

debakun

Members
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About debakun

  • Rank
    Newbie
  1. Oh thank you!! Was using an outdated version of the j/connector we used at school.Thank you for your help.:-)
  2. So is there sumthing wrong with netbeans or mysql?
  3. So i have created a basic program on retrieving a table from mysql(named "book") onto a table in java (name "buklau"). The name of the database is "12sci". I cant get it to work! Pls help me out. Thank you. Heres the code on the retrieve button: DefaultTableModel model= (DefaultTableModel)buklau.getModel(); try{ Class.forName("java.sql.Driver"); Statement stmt = con.createStatement(); String query="SELECT * FROM book"; ResultSet rs=stmt.executeQuery(query); while(rs.next()){ String nm=rs.getString("name"); String ph=rs.getString("phone"); String ct=rs.getString(
  4. debakun

    Debugging!

    Ok i dont get it. Sorry...
  5. debakun

    Debugging!

    I created a program to help me code my sentences.Please help me debug this program. The compiler works just fine but the decompiler wont!!Thank you!! imp - Copy.html
  6. debakun

    Debugging!

    I created a program to help me code my sentences.Please help me debug this program. The compiler works just fine but the decompiler wont!!Thank you!! <!DOCTYPE html> <html> <body> <p id="demo"><button onclick="code()">Encode</button></p> <P><button onclick="decode()">Decode</button></p> <script> function code(){ var word=prompt("Enter Sentence to Code"); var length= word.length; var hey= length/2; var lol=Math.floor(hey); for(i=0;i<length;i++){ var mampi = word.substring(i,i+1); if(mampi==="a"){ document.write("86
  7. debakun

    Debugging!

    So i created a program which will help me to encode any sentence or paragraph. So when i made a decompiler it wont work.Please help me out here.Thank you! <!DOCTYPE html> <html> <body> <p id="demo"><button onclick="code()">Encode</button></p> <P><button onclick="decode()">Decode</button></p> <script> function code(){ var word=prompt("Enter Sentence to Code"); var length= word.length; var hey= length/2; var lol=Math.floor(hey); for(i=0;i<length;i++){ var mampi = word.substring(i,i+1); if(mampi==="a"){ document.wr
  8. Thank you very much for your help. I really appreciate it
  9. I tried to add 2 variables inside a function.I assigned the value of var a= prompt("Enter value"); and value of var b =prompt("Enter value");.I ran the code. I entered the value of var a = 12 and the value of var b = 3. The result should come 15. But it shows 123. The code is given below. I really need help. Its a school assignment. <html> <head> <script src="javascript1.js"></script> </head> <script> function q(){ var a= prompt("Enter value"); var b =prompt("Enter value"); document.getElementById("demo").innerHTML=a+b; }; </script> <but
×
×
  • Create New...