OK, sorry it took so long to get back to you, but I got swamped.
I tried experimenting with what was provided above, but I'm very new at php (teaching myself for 2 weeks) and I'm not sure how to incorporate what's above with what I have that is currently working below.
<?php
trim($searchterm);
if (!$searchtype || !$searchterm)
{
echo "<p align=center><b>You have not entered search details. Please go back and try again.</b></p>";
exit;
}
/* Connecting, selecting database */
@ $db = mysql_connect("db_host", "db_user", "db_pass"

or die("Could not connect"

;
mysql_select_db("db"

or die("Could not select database"

;
/* Performing SQL query */
$query = "SELECT * FROM table WHERE ".$searchtype." LIKE '%".$searchterm."%' order by 'name' asc";
$result = mysql_query($query) or die("Query failed"

;
$num_results = mysql_num_rows($result);
print "<p><b>Your search produced ".$num_results." matches.</b></p>";
/* Printing results in HTML */
print "<table border=\"1\" cellspacing=\"0\" cellpadding=\"4\" width=\"500\" align=\"center\">\n";
print "<tr>\n";
print "<td bgcolor=#0099CC colspan=\"3\" width=\"50%\" align=\"center\"><p><b>Organization</b></p></td>\n";
print "<td bgcolor=#0099CC colspan=\"5\" align=\"center\"><p><b>Information</b></p></td>\n";
print "</tr>\n";
while ($row = mysql_fetch_assoc($result)) {
print "<tr>\n";
printf("<td colspan=\"3\"><p><b>%s</b><br> %s<br> %s</td><td align=\"right\" colspan=\"5\"><p>%s<br> %s, %s. %s<br> %s</td>\n", $row['Name'], $row['Gender'], $row['Affiliation'], $row['Address'], $row['City'], $row['State'], $row['Zip'], $row['Phone']);
print "\t</tr>\n";
}
print "</table>\n";
/* Free resultset */
mysql_free_result($result);
/* Closing connection */
mysql_close($db);
?>
yerfdog