j007ha Posted July 18, 2008 Share Posted July 18, 2008 I have a drop-down-list and whenever i onchange the item in drop down list (select) it will call a javascript function to display 1 more new row in a table which is im going to use it to display data from mysql. So my question is how to echo the data from mysql according to the selected item into a input textbox which im create using the javascript function as i mention above. Example code is like this: var table = document.getElementById('mytable'); var tr = document.createElement('TR'); var td1 = document.createElement('TD'); var inp1 = document.createElement('INPUT'); inp1.setAttribute("value",""); tr.appendChild(td1); td1.appendChild(inp1); Im very appreciate any help from u all php genius ^^ Link to comment https://forums.phpfreaks.com/topic/115346-some-1-help-plz/ Share on other sites More sharing options...
unkwntech Posted July 18, 2008 Share Posted July 18, 2008 This will require an AJAX call to a PHP script doing the SQL query. Link to comment https://forums.phpfreaks.com/topic/115346-some-1-help-plz/#findComment-593038 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.