Database Connection using Javascript

Hi All,
can anyone explain about how to connect with MYSQL database using javascript…

You don’t.

While there are some environments where you could, I’ll assume your working in the typical web browser environment.

What you can do, is use javascript to make an http request to the web server. You’ll need a serverside script, like php for example, which receives the request, and uses the info to interact with mysql, and then outputs the result. You might make use of javascripts xmlhttprequest object to do that.

whether is it posssible make DB connection using javascript…

periyasamycse, you don’t seem to have understood crmalibu’s comments.

You shouldn’t be attempting to connect JavaScript to mySQL, JavaScript is intended for client-side behaviour (exceptions being AJAX or SSJS), you should be using PHP or ASP or a server-side language to make the connection. Especially as not everyone has access to JavaScript. :slight_smile: