Insert data into MySQL Database using javascript/AJAX

后端 未结 4 826
借酒劲吻你
借酒劲吻你 2021-01-22 02:32

I have made a very simple page using google maps API with several fields where users are going to put some data. It looks like following -

http://aiworker2.usask.ca/mark

4条回答
  •  失恋的感觉
    2021-01-22 03:02

    You can connect to a MySQL database via JavaScript using ActivexObject. Example:

    var conn = new ActiveXObject("ADODB.Connection");
    var connStr = "Provider=SQLOLEDB;Server=mysite;Database=Northwind;User Id=MyId;Password=123aBc";
    conn.open(connStr); 
    

提交回复
热议问题