option1, option2, option3 ..... option33, option34, option35
i am able to display the options just fine and i have the output like this
Code: Select all
".$result['option1'].", ".$result['option2'].", ".$result['option3'].", ".$result['option4'].", ".$result['option5']."
Code: Select all
,,,,,,,,,
i am having trouble as my loop is not working
Code: Select all
for ($options = 1; $options <= 35; $options++) {
if ($rowvehicles[o$avail_options] != ''){
$avail_options .= "".$result[option$avail_options].", ";
}
else {
$avail_options .= '';
}
}
thanks