I'm stumped on this one. I've written a function (below) & call it with the echo's (below the function). The function returns what I want except on the next line after the data is the number 1. Anytime that I call this function, it follows the result with a 1 beginning on the next line. What am I missing or doing wrong?
function RowShow ($name,$title)
{
if ($name == 'Y') {
$Optiona.= print("<b>$title: $name</b><br>");
return $Optiona;
}
if ($name != 'Y') {
$Optionb.= print("<b>$title: N</b><br>");
return $Optionb;
}
}
echo RowShow("$row[5]","Air Conditioning");
echo RowShow("$row[6]","Power Windows");
Thanks,
Jason Martin