Jump to content

asmselect with database


friedice

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.