2

I have Some tables in MqSql database. I have to Fetch data from mysql table using javascript & show it in map of leaflet. Can any any one tell me that how can I fetch data from mqsql using javascript ?

1
  • 1
    You should call Database connection from server side, so if you want specific data to be available for javascript then you can use JSON. Get values in severside and encode it to JSON and convert JSON object oriented and do awesome work Commented Apr 9, 2013 at 7:06

1 Answer 1

4

Calling a MySQL database directly from the client is not an option, you'll need some sort of server side API.

If you insist on using JavaScript (on the server), Node.js is a valuable option.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.