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! Link to comment https://forums.phpfreaks.com/topic/117904-javascript-databases/ 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. Link to comment https://forums.phpfreaks.com/topic/117904-javascript-databases/#findComment-606541 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. Link to comment https://forums.phpfreaks.com/topic/117904-javascript-databases/#findComment-606663 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. Link to comment https://forums.phpfreaks.com/topic/117904-javascript-databases/#findComment-606824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.