please anyone can tell me process to connect database using only javascript

Recommended Answers

All 2 Replies

Javascript cannot directly connect to a database. You would need to set up a server that the javascript can talk to which would act as the middle man to interact with the db. Even if the database is on the same physical machine as the javascript.

One small exception: I'm working on an application right now that uses the world's sweetest database. It's stored entirely in cookies. For my particular app, an 80kB database is adequate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.