funbinod Posted March 27, 2014 Share Posted March 27, 2014 i want to know if jquery (or javascript) can deal with mysql database? Link to comment Share on other sites More sharing options...
thescientist Posted March 27, 2014 Share Posted March 27, 2014 not directly no. Javascript is client side code, and does not directly interact with the database. A server-side language like PHP can. Typically applications make client side HTTP requests to a server side script which interacts with the database and returns a response to the client side application. 1 Link to comment Share on other sites More sharing options...
justsomeguy Posted March 27, 2014 Share Posted March 27, 2014 No, Javascript cannot communicate directly with things on the server. Javascript runs in the browser, not the server. 1 Link to comment Share on other sites More sharing options...
funbinod Posted March 27, 2014 Author Share Posted March 27, 2014 thank u... but if a php script retrived the data from database on a separate file, can javascript read that? if yes please guide.... Link to comment Share on other sites More sharing options...
thescientist Posted March 27, 2014 Share Posted March 27, 2014 thank u... but if a php script retrived the data from database on a separate file, can javascript read that? if yes please guide.... that's what I said... not directly no. Javascript is client side code, and does not directly interact with the database. A server-side language like PHP can. Typically applications make client side HTTP requests to a server side script which interacts with the database and returns a response to the client side application. Link to comment Share on other sites More sharing options...
funbinod Posted March 27, 2014 Author Share Posted March 27, 2014 thank u! but will the "HOW" question be entertained? Link to comment Share on other sites More sharing options...
thescientist Posted March 27, 2014 Share Posted March 27, 2014 AJAX http://www.w3schools.com/ajax/ajax_intro.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now