ID_Collection; $sqlUnitID = addslashes($row->UnitID_Specimen); $sqlSourceName = addslashes($row->CollectionCode_Specimen); $sqlSourceInstitutionCode = addslashes($row->InstitutionCode_Specimen); $sqlPersonName = addslashes($row->Collectors); $sqlCollectionDateMin = addslashes($row->CollectionDateMin); $sqlCollectionDateMax = addslashes($row->CollectionDateMax); $sqlCollectorsNo = addslashes($row->CollectorsNo); $sqlLocality = addslashes($row->Region." ".$row->Locality." ".$row->SeasAndOceans); $sqlCountryName = addslashes($row->Country); $sqlISO2 = addslashes($row->IsoCode); $Altitude = $row->AltitudeMin; if($row->AltitudeMax != "") {$Altitude .= " - ".$row->AltitudeMax; } $Altitude .= $row->AltitudeUnit; $sqlAltitude = addslashes($Altitude); $sqlLongitude = addslashes($row->LongitudeMin); $sqlLatitude = addslashes($row->LatitudeMin); $sqlUnitGUID = addslashes($row->GUID); } $result2 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM sptooltaxa " . " WHERE FK_Collection = '$ID_Collection'"); while($row = mysqli_fetch_object($result2)) { $ID_TaxonIdentifieds[] = $row->ID_TaxonIdentified; $Identifications[] = $row->ID_TaxonIdentified; $sqlGenus[] = addslashes($row->Genus); $sqlSubgenus[] = addslashes($row->Subgenus); $sqlFirstEpithet[] = addslashes($row->SpecificEpithet); $sqlSecondEpithet[] = addslashes($row->InfrapsecificEpithet); $sqlRank[] = addslashes($row->Rank); $sqlNameAuthorYearString[] = addslashes($row->NameAuthorYear); $sqlPreferredIdentificationFlag[] = addslashes($row->PreferredFlag); } if($ID_TaxonIdentifieds != "") { foreach($ID_TaxonIdentifieds as $ID_TaxonIdentified) { $result3 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM sptoolhighertaxon " . " WHERE FK_TaxonIdentified = '$ID_TaxonIdentified'"); while($row = mysqli_fetch_object($result3)) { $sqlHigherTaxon[] = addslashes($row->HigherTaxon); $HigherTaxa[] = addslashes($row->HigherTaxon); $sqlHigherTaxonRank[] = addslashes($row->TaxonRank); } } } ?>