About 9,570,000 results
Open links in new tab
  1. Can JavaScript connect with MySQL? - Stack Overflow

    Jun 11, 2010 · Yes you can. MySQL connectors use TCP for connection, and in JS there is an little modified version of TCP client called Websocket. But you can't directly connect to MySQL server with websocket. You will need some 3rd party bridge between websocket and mysql. It receive query from websocket, send it to mysql, response result and resend to JS.

  2. javascript - Convert JS date time to MySQL datetime - Stack …

    Feb 26, 2011 · JavaScript timestamps are based on your device's clock and include the time zone. Before sending any timestamps generated from JavaScript, you should convert them to UTC time. JavaScript has a method called toISOString() which formats a JavaScript timestamp to look similar to MySQL timestamp and converts the timestamp to UTC time.

  3. how to run a MySQL query using JavaScript - Stack Overflow

    Jun 27, 2012 · Javascript cannot run MySQL Queries itself; however, you can use ajax to make a call to the server to retrieve the data. I like to use jQuery's ajax() for my ajax needs. Here is an example of how jquery's ajax() method works:

  4. Send data from javascript to a mysql database - Stack Overflow

    Dec 7, 2011 · The other posters are correct you cannot connect to MySQL directly from javascript. This is because JavaScript is at client side & mysql is server side. So your best bet is to use ajax to call a handler as quoted above if you can let us know what language your project is in we can better help you ie php/java/.net

  5. How to access mysql using javascript? - Stack Overflow

    Apr 20, 2013 · How to connect to MySQL from JavaScript? 0. mySQL connection with javascript. 0. Node.js: accessing mysql ...

  6. Convert MySql DateTime stamp into JavaScript's Date format

    Jul 19, 2018 · uh mysql uses one time zone and the javascript Date constructor only accepts the local time zone thus rendering this solution wrong by up to 24 hours... the new Date(Date.UTC(...)) is better, but that assumes that mysql uses utc... either way this needs to be considered before this can be considered a correct answer.

  7. SELECT from mysql database on javascript call - Stack Overflow

    Apr 24, 2012 · I have a small web app built in PHP and Javascript/jQuery. The app involves a random number generator and when it lands on say number 4, the user wins. However the prize is pulled from a database and after 5 prizes a day are won. the user is unable to win.

  8. How do I connect javascript and MySQL via PHP? - Stack Overflow

    Apr 5, 2018 · I am developing a simple web application. I have a MySQL database which stores a value. When I load my website, I want to run a php script that retrieves said value from the DB and passes it to javascript. I then use the javascript to either disable a …

  9. Is it possible to access a MySQL database straight from Javascript

    Mar 19, 2012 · Yes, you can use a Javascript library like Node.js to perform MySQL queries in Javascript - it's just a really bad idea (TM) to do this client side, as you'd need to send users the authentication details and provide the ability for clients to connect to your MySQL server, meaning it'd have to be internet accessible to any IP! Not good.

  10. Insert data into MySQL Database using javascript/AJAX

    Oct 11, 2012 · What I want to do is store the data into MySQL database using javascript/Ajax. I have found several examples that has used Jquery. I'm very new to this javascript/Ajax/Jquery platform. Now my question is-Is it possible to insert data into MySQL database without using JQuery? Can anyone send any link of simple example or tutorial to deal with ...

Refresh