Jump to content


Photo

Can JavaScript connect to MySQL


  • Please log in to reply
1 reply to this topic

#1 ldsmike88

ldsmike88
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts
  • LocationFlorida

Posted 11 August 2006 - 05:48 AM

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

#2 radalin

radalin
  • Members
  • PipPipPip
  • Advanced Member
  • 179 posts

Posted 11 August 2006 - 08:00 AM

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.ajaxfreak...torials/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
Roy Simkes
Yet Another Parkyeri Developer




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users