37 $sql .= "', tun_weight='" . $_POST['tun_weight']; |
37 $sql .= "', tun_weight='" . $_POST['tun_weight']; |
38 $sql .= "', tun_specific_heat='" . $_POST['tun_specific_heat']; |
38 $sql .= "', tun_specific_heat='" . $_POST['tun_specific_heat']; |
39 $sql .= "', tun_material='" . $_POST['tun_material']; |
39 $sql .= "', tun_material='" . $_POST['tun_material']; |
40 $sql .= "', tun_height='" . floatval($_POST['tun_height']) / 100.0; |
40 $sql .= "', tun_height='" . floatval($_POST['tun_height']) / 100.0; |
41 $sql .= "', top_up_water='" . $_POST['top_up_water']; |
41 $sql .= "', top_up_water='" . $_POST['top_up_water']; |
42 $sql .= "', trub_chiller_loss='" . $_POST['trub_chiller_loss']; |
42 $sql .= "', trub_loss='" . $_POST['trub_loss']; |
43 $sql .= "', evap_rate='" . $_POST['evap_rate']; |
43 $sql .= "', evap_rate='" . $_POST['evap_rate']; |
44 $sql .= "', boil_time='" . $_POST['boil_time']; |
44 $sql .= "', boil_time='" . $_POST['boil_time']; |
45 ($_POST['calc_boil_volume'] == 'true') ? $sql .= "', calc_boil_volume='1" : $sql .= "', calc_boil_volume='0"; |
45 ($_POST['calc_boil_volume'] == 'true') ? $sql .= "', calc_boil_volume='1" : $sql .= "', calc_boil_volume='0"; |
46 $sql .= "', top_up_kettle='" . $_POST['top_up_kettle']; |
46 $sql .= "', top_up_kettle='" . $_POST['top_up_kettle']; |
47 $sql .= "', notes='" . mysqli_real_escape_string($connect, $_POST['notes']); |
47 $sql .= "', notes='" . mysqli_real_escape_string($connect, $_POST['notes']); |
112 'tun_weight' => $row['tun_weight'], |
112 'tun_weight' => $row['tun_weight'], |
113 'tun_specific_heat' => $row['tun_specific_heat'], |
113 'tun_specific_heat' => $row['tun_specific_heat'], |
114 'tun_material' => $row['tun_material'], |
114 'tun_material' => $row['tun_material'], |
115 'tun_height' => floatval($row['tun_height']) * 100.0, |
115 'tun_height' => floatval($row['tun_height']) * 100.0, |
116 'top_up_water' => $row['top_up_water'], |
116 'top_up_water' => $row['top_up_water'], |
117 'trub_chiller_loss' => $row['trub_chiller_loss'], |
117 'trub_loss' => $row['trub_loss'], |
118 'evap_rate' => $row['evap_rate'], |
118 'evap_rate' => $row['evap_rate'], |
119 'boil_time' => $row['boil_time'], |
119 'boil_time' => $row['boil_time'], |
120 'calc_boil_volume' => $row['calc_boil_volume'], |
120 'calc_boil_volume' => $row['calc_boil_volume'], |
121 'top_up_kettle' => $row['top_up_kettle'], |
121 'top_up_kettle' => $row['top_up_kettle'], |
122 'notes' => $row['notes'], |
122 'notes' => $row['notes'], |