Jump to content

Archived

This topic is now archived and is closed to further replies.

ldsmike88

Can JavaScript connect to MySQL

Recommended Posts

Is it possible for javascript to connect and edit a MySQL database? If it is possible how do you run a simple update query? Thanks!

Michael

Share this post


Link to post
Share on other sites
I'm not very sure if this is possible but I don't think so. I mean if you can connect it ONLY using javascript. Because JS is a client side scripting language and all it's code can be seen via "view source" and think that your server username and password is seen!

But by using an ActiveX or XMLHTTPRequest Object, yes that's possible. Try looking here http://www.ajaxfreaks.com/tutorials/3/0.php . There isn't lots of tutorials there but you can google for ajax tutorials and see what you get. You could also try ajaxian.com.

Hope that helps

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.