dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: How to connect any html program with sql database?

  1. #1
    Join Date
    Jul 2013
    Posts
    45

    How to connect any html program with sql database?

    Hello, Friends
    I want to know how to add any html program with sql database. So please tell me

  2. #2
    Join Date
    Mar 2012
    Posts
    3,158
    All I can tell you is: I do not understand the question! If you meant "how do I connect an html program to an SQL database?", the answer is "with PHP".

    If that is not what you meant, please explain what you are trying to do...

  3. #3
    Join Date
    Jul 2013
    Posts
    45

    Connect html with database

    Quote Originally Posted by jedaisoul View Post
    All I can tell you is: I do not understand the question! If you meant "how do I connect an html program to an SQL database?", the answer is "with PHP".

    If that is not what you meant, please explain what you are trying to do...
    I am saying that i write a program in html. Create a form and want to if i click a button than all deta of form save in the database. So its possible or not only in Html
    Last edited by alendonald; 07-31-2013 at 06:23 AM.

  4. #4
    Join Date
    Mar 2012
    Posts
    3,158
    That is not possible in html. You need to use php, or another server side language, to interface to the sql database.

  5. #5
    Join Date
    Aug 2013
    Posts
    13
    You will need to learn some server side language like PHP, ASP.net, JSP etc to connect your page with a database.

  6. #6
    Join Date
    Jul 2013
    Posts
    45
    Thanks for all to give this information.

  7. #7
    Join Date
    Aug 2015
    Posts
    3
    you can try to use JDBC to connect sql database .
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbcdbc:stu");
    Statement stmt = con.createStatement();
    String sql = "select * from student ";
    ResultSet rs = stmt.executeQuery(sql);

    *** advertising message deleted by moderator - please do not spam this site ***
    Last edited by jedaisoul; 09-22-2015 at 02:44 AM.

  8. #8
    Join Date
    Nov 2013
    Location
    London
    Posts
    88
    Quote Originally Posted by nancyandroid View Post
    You will need to learn some server side language like PHP, ASP.net, JSP etc to connect your page with a database.
    This is what I would like to suggest because php, java and .net can understand server side scripts.
    Make your online presence powerful with top 10 web design companies in London.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles