Sorry, as a guest you don't have permission for entering new DNA data! If you want to search for existing DNA data please use the Search function! |
"; }
else {
if($formProviderIntern) { $IDDataset = $formProviderIntern; }
if($formProviderExtern) { $IDDataset = $formProviderExtern; }
/********************************************************************************************
* at first, check if specimen data are already in cache tables *
* if so, count how many DNA samples are yet connected to this record *
********************************************************************************************/
$test = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT ID_Cache FROM cachecollection " .
"WHERE UnitID_Specimen = '$sqlUnitID' " .
" AND CollectionCode_Specimen = '$sqlSourceName' " .
" AND InstitutionCode_Specimen = '$sqlSourceInstitutionCode' " .
" AND FK_Dataset_Specimen = '$IDDataset'");
while ($row = mysqli_fetch_object($test))
{ $ID_Cache = $row->ID_Cache; }
$test2 = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT ID_TaxonIdentified, NameAuthorYear FROM cachetaxonidentified WHERE FK_Cache = '$ID_Cache'");
while ($row = mysqli_fetch_object($test2))
{ $View = $row->NameAuthorYear; }
if(mysqli_num_rows($test))
{$IDTableCache = $ID_Cache;
$Exist = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT ID_DNA, DNA_Bank_Number FROM dnabanknumbers " .
"WHERE FK_Cache = '$IDTableCache'");
$count = mysqli_num_rows($Exist);
echo "