Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to connect database in html
Posted
Updated 11-Jun-17 3:30am
Comments
PIEBALDconsult 20-Oct-13 12:25pm    
Ummm... what?
Ranjan.D 20-Oct-13 12:26pm    
Do you mind specifying which database ? You need a server side technology.. it's not possible with HTML alone.

It cannot be done in HTML, but possible in JavaScript, which is not recommended. JavaScript is totally open to the client side, which would make database communications utterly unsafe. You can use any of the server-side technologies, for example based on ASP.NET, Prolog, PHP or anything else.

—SA
 
Share this answer
 
HTML are markup languages, basically they are set of tags like <html>, <body>, which is used to present a website using css, and javascript as a whole. All these, happen in the clients system or the user you will be browsing the website.

Now, Connecting to a database, happens on whole another level. It happens on server, which is where the website is hosted.

So, in order to connect to the database and perform various data related actions, you have to use server-side scripts, like php, jsp, asp.net etc.

Source: http://stackoverflow.com/a/10467388[^]
 
Share this answer
 
v2
Comments
Thomas Daniels 20-Oct-13 12:32pm    
I've added a reference to the original answer: if you copy an answer from another site, then ALWAYS post a reference to the original answer!
Sergey Alexandrovich Kryukov 20-Oct-13 23:06pm    
Than you for this important note. I almost voted 5 for this answer... Instead of "fixing" the answer in this way, you should report Anoop Kr Sharma on his account for plagiarism, which is quite a serious offense and should not be tolerated. This member account already got 4 abuse report but is still alive...
—SA
Anoop Kr Sharma 20-Oct-13 23:39pm    
In Future, If I take answer from any other site than I definitely provide its reference link in Solution.Thanks for your valuable comment.I really Apologize for my Mistake.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900