$res2) $res_query="res <= '$res1' AND res >= '$res2'"; else $res_query="res >= '$res1' AND res <= '$res2'"; } array_push($where_clause, $res_query); } //build entry_type clause if ($entry_type) array_push($where_clause, "entry_type = '$entry_type'"); //build space group clause if ($spgrp) array_push($where_clause, "spgroup = '$spgrp'"); $where = implode(" AND ", $where_clause); if (!$where){ echo "You didn't enter any search restrictions, go back and try again."; include("footer.html"); exit; } echo"
"; $results = mysql_query("SELECT virus_info.vipPDB, name FROM virus_info $use_layers $use_xtal_table WHERE $where ORDER BY name"); $numrows = mysql_num_rows($results); echo""; if ($numrows != 0) { echo "Search Results "; if ($numrows==1) echo "(1 match):
    \n"; else echo "($numrows matches):
      \n"; while ($myrow = mysql_fetch_array($results)) { $vipPDB=$myrow["vipPDB"]; $name=$myrow["name"]; echo "
    • ($vipPDB) $name
    • \n"; } } else echo"No results for your entry, please try again:\n"; echo"

      Search Again

\n"; include("footer.html"); exit; } ?>
>
Find Viruses by selecting the viral features you wish to see in the results. Use as many or as few of the search restrictions as you wish.
Name:
Family:
Genus:
Resolution is: and (use format '0.00')
Entry Type:
All types
X-ray
Cryo EM
T number:
(all that apply)

T = 1
T = 1(2)
T = pT3
T = pT25
T = pT169
T = 3
T = 4
T = 7l
T = 7d
T = 13
Space Group:

Crystal System:
(all that apply)

Triclinic
Monoclinic
Orthorhombic
Tetragonal
Rhombohedral
Hexagonal
Cubic