--- a/admin/import.php +++ b/admin/import.php @@ -1,7 +1,8 @@ "contactPostcode", "" => "" ); - - $headers; + while (($data = fgetcsv($handle, 1000, "\t")) !== false) { $num = count($data); @@ -185,14 +185,20 @@ flush(); // run post import data processing -// cn - echo "link amend
"; + // + if ($success > 0) { +$conn->exec("update datasets set \"lastUpdated\" = NOW() where title = 'Contract Notices'"); +/* echo "link amend
"; include ("linkAmendments.php"); echo "update UNSPSC
"; - include ("updateUNSPSC.php"); + include ("updateUNSPSC.php");*/ + } +// cn + // agency //include ("setAgencyStatus.php"); //include ("setAgencyURLABN.php"); } +} ?>