-1

How can we connect to SQL or other Database using HTML5? Am new to HTML5 can any one help me

2
  • Can you extend your question with smaple code and specify your database type etc.. Commented Oct 15, 2013 at 9:31
  • duplicate of stackoverflow.com/questions/6106740/… Commented Oct 15, 2013 at 9:33

3 Answers 3

2

HTML5 is a static document, you cannot connect to a database with HTML5, but you can use php or javascript.

Sign up to request clarification or add additional context in comments.

Comments

1

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

the best way to connecting database using javascript...
0

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.