zhahaman2001 Posted January 18, 2007 Share Posted January 18, 2007 ok along with my other problem im trying to do something else...lets say i have 2 tables in my database one is named states and one is named citysand lets say on my page i have a 2 combo boxs like this:[code]print "<select name='stateid'>";$TEMP = mysql_query("select * from states order by name");while ($state = mysql_fetch_array($TEMP)) { print "<option value='$state[id]'>$stat[name]</option>";}print "</select>";print "<select name='city'>"; // Here my problemprint "</select>";[/code]i want it so when i click one of the states from the first combo box that it goes to the cities table of my database and fills the 2nd combo box with all the citys that are in that state Link to comment https://forums.phpfreaks.com/topic/34773-combo-box-with-data-from-table-in-database/ Share on other sites More sharing options...
zhahaman2001 Posted January 22, 2007 Author Share Posted January 22, 2007 did i post this in the wrong section or......did i write it in a way that no one understands? i really need this problem solved please anyone have any ideas?? please!!!!! Link to comment https://forums.phpfreaks.com/topic/34773-combo-box-with-data-from-table-in-database/#findComment-166490 Share on other sites More sharing options...
Jessica Posted January 22, 2007 Share Posted January 22, 2007 You'll need to use ajax. Link to comment https://forums.phpfreaks.com/topic/34773-combo-box-with-data-from-table-in-database/#findComment-166520 Share on other sites More sharing options...
zhahaman2001 Posted January 22, 2007 Author Share Posted January 22, 2007 any links where i can get an idea of how to do it? Link to comment https://forums.phpfreaks.com/topic/34773-combo-box-with-data-from-table-in-database/#findComment-166551 Share on other sites More sharing options...
Jessica Posted January 22, 2007 Share Posted January 22, 2007 check out mootools.net and the ajax forum here. Link to comment https://forums.phpfreaks.com/topic/34773-combo-box-with-data-from-table-in-database/#findComment-166556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.