function getOptionDetail($oID){
if($oID){
$Q = "select "
. " oID, "
. " oNum, "
. " pOption "
. "from "
. " ds_options "
. "where "
. " oID = '$oID' "
. "";
$result = $this->mySQL_Array($Q);
return $result;
}
}
function getProductOptionString($pID){
if($pID){
$Q = "select "
. " oID, "
. " oNum, "
. " pOption "
. "from "
. " ds_options "
. "where "
. " pID = '$pID' "
. "order by "
. " oID "
. "";
$result = $this->mySQL_Query($Q);
$count = mysql_num_rows($result);
if($count>0){
$options = "<select name=\"oID\">\n";
while($list = mysql_fetch_array($result)){
$label = $this->scrubText($list[pOption]);
$options .= "<option value=\"$list[oID]\">";
$options .= $label;
$options .= "</option>\n";
}
$options .= "</select>\n";
return $options;
}
}
}
?>
Am calling this loop by the following
<?php $options ? print "<font face=\"arial,verdana,helvetica\" size=2>Options:</font><br>$options<br><br>" : print ""; ?>
How might you query the $option variable to make a decision on displaying a graphic if it contains blue, red, green, or black?