ldsmike88 Posted August 11, 2006 Share Posted August 11, 2006 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 Link to comment https://forums.phpfreaks.com/topic/17210-can-javascript-connect-to-mysql/ Share on other sites More sharing options...
radalin Posted August 11, 2006 Share Posted August 11, 2006 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 Link to comment https://forums.phpfreaks.com/topic/17210-can-javascript-connect-to-mysql/#findComment-72909 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.