houssam_ballout Posted November 10, 2011 Share Posted November 10, 2011 Hello, I had this issue: I had drop down box in html, which on change it will run a javascript, I want to run mysql query when I select an item from the drop-down box. Any help? Thanks Link to comment https://forums.phpfreaks.com/topic/250846-run-mysql-query-inside-javascript/ Share on other sites More sharing options...
denno020 Posted November 10, 2011 Share Posted November 10, 2011 AJAX is exactly what you're after Denno Link to comment https://forums.phpfreaks.com/topic/250846-run-mysql-query-inside-javascript/#findComment-1286961 Share on other sites More sharing options...
houssam_ballout Posted November 10, 2011 Author Share Posted November 10, 2011 Any example? Link to comment https://forums.phpfreaks.com/topic/250846-run-mysql-query-inside-javascript/#findComment-1286962 Share on other sites More sharing options...
denno020 Posted November 10, 2011 Share Posted November 10, 2011 Just google tutorials, or youtube tutorials. It'll allow you to send a request to the server to be processed by PHP (which is where your mysql query will run), and then return the result to the browser, to a div you specify, all without refreshing the page, pretty sweet . Exactly how comments on facebook appear in real time, using AJAX (I assume) Denno Link to comment https://forums.phpfreaks.com/topic/250846-run-mysql-query-inside-javascript/#findComment-1286963 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.