I want to store data into mysql table using JavaScript. But, I don't want to use php. Is it possible?
You may need to consider Node Js for such job. Check this
Javascript is a client-side language, so it runs on the clients browser. If you still want to insert into mysql using javascript then you could use something like node.js which would run on the server-side.
For instance this is how an insert using node.js would look like:
var post = {id: 1, title: 'Hello MySQL'};
var query = connection.query('INSERT INTO posts SET ?', post, function(err, result) {
// check result or error!
});
Jahangir jan, It's not possible to use client side Javascript to store something into the MySQL. But it's possible to use server side Javascript to do it.