www/import/from_brouwhulp.php

changeset 88
0a39cbdcf085
parent 87
7f1d0abe5571
child 89
082c23b26055
equal deleted inserted replaced
87:7f1d0abe5571 88:0a39cbdcf085
835 */ 835 */
836 $og = estimate_og($f_sugars, $batch_size); 836 $og = estimate_og($f_sugars, $batch_size);
837 $sql .= "', est_og='" . floatval($og); 837 $sql .= "', est_og='" . floatval($og);
838 $fg = estimate_fg($pSugar, $pCara, 0, 0, 0, $svg, $og); 838 $fg = estimate_fg($pSugar, $pCara, 0, 0, 0, $svg, $og);
839 $sql .= "', est_fg='" . floatval($fg); 839 $sql .= "', est_fg='" . floatval($fg);
840 $abv = abvol($og, $fg);
841 $sql .= "', est_abv='" . floatval($abv);
840 842
841 $sql .= "';"; 843 $sql .= "';";
842 if (! $result = mysqli_query($db, $sql)) { 844 if (! $result = mysqli_query($db, $sql)) {
843 printf("Error: %s\n", mysqli_error($db)); 845 printf("Error: %s\n", mysqli_error($db));
844 } 846 }

mercurial