urgent Posted March 14, 2007 Share Posted March 14, 2007 Hi. Anyone have any idea how to do use javascript for sql statement? I wanted to use javascript to select the content from the database and check the input of certain fields from the form... I have been told that some of the online applications are using this function.. Quote Link to comment https://forums.phpfreaks.com/topic/42618-using-javascript-for-sql-statement/ Share on other sites More sharing options...
chronister Posted March 14, 2007 Share Posted March 14, 2007 That would be AJAX (Asynchronous Javascript and XML) . Javascript alone cannot do it. You have to have an ajax framework that makes a server call and then runs a php script. That is my 2 cents, I may be wrong here however I don't think that I am. Quote Link to comment https://forums.phpfreaks.com/topic/42618-using-javascript-for-sql-statement/#findComment-206821 Share on other sites More sharing options...
ridiculous Posted March 14, 2007 Share Posted March 14, 2007 Your name makes me think of that song by Foreigner, "Urgent".... Urgent, urgent wait and see... Yeah. And then comes in the whine of that saxophone. So hot right now. ------ Ajax is what you need, my little tiger. Here's an awesome tutorial I used the other day for just this kind of application. http://www.webpasties.com/xmlHttpRequest/index.html Now go buy a Foreigner album. So urgent urgent urgent urgent emergency URGENT! URGENT! Quote Link to comment https://forums.phpfreaks.com/topic/42618-using-javascript-for-sql-statement/#findComment-206828 Share on other sites More sharing options...
jitesh Posted March 14, 2007 Share Posted March 14, 2007 You can use AJAX Quote Link to comment https://forums.phpfreaks.com/topic/42618-using-javascript-for-sql-statement/#findComment-206840 Share on other sites More sharing options...
urgent Posted March 14, 2007 Author Share Posted March 14, 2007 Thanks for the reply guys... oooh...I have heard of Ajax but don't really know how to use it.. I am using Xampp for my thing. If I am going to use Ajax, how do I integrate it with Xampp. The thing that I am actually doing is: 1. Insert a new subject into the programme table 2. Before I can do that I have to check the rules in the database... I have one table for the prerequisite of the subject & one table for the programme itself 3. I have to check the prerequisite. If there is a prerequisite for that particular subject, I need to check in the programme table whether the prerequisite have been taken. If yes, the subject will be inserted. If no, there will be an error message... Anyone can give me any clue how to do this? The prerequisite is just a part of the thing. I still need to check something else so it is possible to use a simple processing page? Thanks in advance.. Quote Link to comment https://forums.phpfreaks.com/topic/42618-using-javascript-for-sql-statement/#findComment-206969 Share on other sites More sharing options...
urgent Posted March 14, 2007 Author Share Posted March 14, 2007 Quote Your name makes me think of that song by Foreigner, "Urgent".... Urgent, urgent wait and see... Yeah. And then comes in the whine of that saxophone. So hot right now. ------ Ajax is what you need, my little tiger. Here's an awesome tutorial I used the other day for just this kind of application. http://www.webpasties.com/xmlHttpRequest/index.html Now go buy a Foreigner album. So urgent urgent urgent urgent emergency URGENT! URGENT! huh? Never heard anything about urgent...Is it nice? Quote Link to comment https://forums.phpfreaks.com/topic/42618-using-javascript-for-sql-statement/#findComment-206977 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.