How can we connect to SQL or other Database using HTML5? Am new to HTML5 can any one help me
-
Can you extend your question with smaple code and specify your database type etc..herry– herry2013-10-15 09:31:44 +00:00Commented Oct 15, 2013 at 9:31
-
duplicate of stackoverflow.com/questions/6106740/…Michael Schmidt– Michael Schmidt2013-10-15 09:33:40 +00:00Commented Oct 15, 2013 at 9:33
3 Answers
HTML 5 drafts used to define a couple of database systems, but they have been broken out into separate specifications (Web Storage and Web SQL Database).
These provide databases that are accessible only to the browser though. If you want a shared database (i.e. so that data saved by one user can be accessed by another user visiting the same site) then you need to use a server side database.
The usual ways to communicate with a server side database from the client in a web application are:
- A web application where data is submitted via forms
- A web service accessed using XMLHttpRequest
1 Comment
You can find a complete reference here: http://www.html5rocks.com/en/features/storage
However, try to format your questions better, and tell us what did you try, what do you want to achieve.