By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,253 Members | 1,680 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,253 IT Pros & Developers. It's quick & easy.

Connecting to MySQL database

P: 27
Hi,

how do you connect to MySQL database through the script. Is it safe to connect through the script ?
Oct 10 '07 #1
Share this Question
Share on Google+
2 Replies


dmjpro
100+
P: 2,476
Hi,

how do you connect to MySQL database through the script. Is it safe to connect through the script ?
Do Google with "AJAX".

Debasis Jana
Oct 10 '07 #2

gits
Expert Mod 5K+
P: 5,390
hi ...

you cannot connect to a database directly with javascript ... but you may use an XMLHttpRequest = AJAX - call to call a service at the server that will do this for you. the response is handled by the object and a so called callback that you have to implement in javascript. you find a small and basic example in our articles section ... or have a look at the ajax-links in the sticky offsite-links thread in javascript-forum ...

kind regards
Oct 10 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.