need help with a dynamic switch:
while ($row = mysql_fetch_array($result)) {
$case .= "case '".$row[field_name]."':";
}
// now trying to place the $case into the switch....
switch($var):
$case
$status = '0';
break;
default:
$GBStatus = '1';
break;
endswitch;