Cless Posted August 3, 2008 Share Posted August 3, 2008 Hello. Is there a method that can be utilized in order to connect to a database (preferably MySQL)? Or would this be considered insecure? Thanks! Quote Link to comment Share on other sites More sharing options...
Psycho Posted August 3, 2008 Share Posted August 3, 2008 Well, you *can* run JavaScript server-side, but that's not very common from my experience. But, if you did do that, then you can connect to a database (not sure about MySQL): http://ajaxian.com/archives/server-side-javascript-databases-access But, it would take a lot more effort to do it and there are much better languages for working with a database (such as PHP). If you are looking for a way to add/retrieve information from the client-side, then you should be looking into AJAX. Quote Link to comment Share on other sites More sharing options...
Cless Posted August 3, 2008 Author Share Posted August 3, 2008 Thanks for your help. I typically do utilize PHP, however, in this instance, I require JavaScript... and Flash is much too slow. Quote Link to comment Share on other sites More sharing options...
Psycho Posted August 3, 2008 Share Posted August 3, 2008 Well, as stated you cannot do it with cleint-side javascript. And, to do server-side javascript would require a webserver that supports it. That is a much more limited environment than one that supports PHP or ASP. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.