friedice Posted October 8, 2010 Share Posted October 8, 2010 hello peeps just wondering if its possible to get values from database and dynamically load it into the asmselect functiion for example using this website http://www.ryancramer.com/projects/asmselect/examples/example1.html each one selected is stored in a seperate variable using a forloop like $lang_i = 0; foreach($cities as $city) { // exclude any items with chars we don't want, just in case someone is playing if(!preg_match('/^[-A-Z0-9\., ]+$/iD', $city)) continue; // print the lang eval("\$cit".($lang_i++)." = \$city;"); } then cit0, cit1, cit2 etc is stored in a separate column each in database is it possible to call each column and and populate each value in the cities array with those values? if is it how can u do this? thx Link to comment https://forums.phpfreaks.com/topic/215421-asmselect-with-database/ Share on other sites More sharing options...
friedice Posted October 10, 2010 Author Share Posted October 10, 2010 anyone? Link to comment https://forums.phpfreaks.com/topic/215421-asmselect-with-database/#findComment-1120740 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.