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 "
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
2 matches
Mail list logo