my $sql = "SELECT DISTINCT name FROM master WHERE name Like \'%$compan +y%\' ORDER BY name;"; if($company){ print "<td colspan=\"4\" height=\"23\" nowrap>&<SELECT NAME=\"compan +y\">"; $sth = $dbh->prepare($sql); $sth->execute() || die $sth->errstr; while ($pointer = $sth->fetchrow_hashref) { $ag = $pointer->{'name'}; $ag_save = $ag; if($ag){ print "<OPTION VALUE=$ag_save>$ag_save</OPTION>"; }else{ print "<OPTION>No Ag were found</OPTION>"; } } print "</SELECT>";
In reply to If Problem!!! by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |