if (isset($_GET['SoilConditions'])) { $Plant->setPlantSoil($_GET['SoilConditions']); } $weatherCount = 0; if (isset($_GET['ObservationTime'])) { $ObservationTime = date("H:i", strtotime($_GET['ObservationTime'])); $Weather->setTime($ObservationTime); $weatherCount++; } if (isset($_GET['ObservationDate'])) { $ObservationDate = date("m:d:Y", strtotime($_GET['ObservationDate'])); $Weather->setObservationDate($ObservationDate); $weatherCount++; } if (isset($_GET['Temperature'])) { $Weather->setTemperature($_GET['Temperature']); $weatherCount++; } if (isset($_GET['Conditions'])) { $Weather->setConditions($_GET['Conditions']); $weatherCount++; } if (isset($_GET['ObservationDate']) && !isset($_GET['ObservationTime'])) { $php_errormsg = $php_errormsg . "Please set date AND Time of the observation.<br>"; $weatherCount = 0; } if ((isset($_GET['Temperature']) || isset($_GET['Conditions'])) && !isset($_GET['ObservationDate'])) { $php_errormsg = $php_errormsg . " Please set the date and time of the observation. <br>"; $weatherCount = 0; } if (!isset($user)) {