Re: [PHP] Help with multiple select

2002-08-09 Thread Analysis & Solutions
Untested... $row = mysql_fetch_array($result, MYSQL_ASSOC); # Assuming items are comma separated in the field... $mins = explode(',', $row['mins']); echo "\n"; echo " \n"; for ($i=0; $i<12; $i++) { echo " $i\n" } echo " \n\n"; echo "\n"; echo "

RE: [PHP] Help with multiple select

2002-08-08 Thread Maxim Maletsky
Try: $mins = "2,3,5,6,7"; $ret = array_reverse(explode(',', $mins)); // now you have something like: // $ret[2] = 0; // $ret[3] = 1; // // etc, basically string became and array in reversed way... then in script... if(isset($mins[2])) ... if(isset($mins[3])) and so on . but, I wou