www/import/from_brouwhulp.php

changeset 13
b8c3ca152984
parent 11
d341f0a91a91
child 15
ccbe79db80b8
equal deleted inserted replaced
12:c26af32428a4 13:b8c3ca152984
119 ($hop->ALWAYS_ON_STOCK == 'TRUE') ? $sql .= "', always_on_stock='Y" : $sql .= "', always_on_stock='N"; 119 ($hop->ALWAYS_ON_STOCK == 'TRUE') ? $sql .= "', always_on_stock='Y" : $sql .= "', always_on_stock='N";
120 if ($hop->INVENTORY) 120 if ($hop->INVENTORY)
121 $sql .= "', inventory='" . $hop->INVENTORY; 121 $sql .= "', inventory='" . $hop->INVENTORY;
122 if ($hop->COST) 122 if ($hop->COST)
123 $sql .= "', cost='" . $hop->COST; 123 $sql .= "', cost='" . $hop->COST;
124 if ($hop->TOTAL_OIL)
125 $sql .= "', total_oil='" . $hop->TOTAL_OIL;
124 $sql .= "';"; 126 $sql .= "';";
125 if (! $result = mysqli_query($db, $sql)) { 127 if (! $result = mysqli_query($db, $sql)) {
126 printf("Error: %s\n", mysqli_error($db)); 128 printf("Error: %s\n", mysqli_error($db));
127 } 129 }
128 } 130 }
443 } 445 }
444 446
445 447
446 448
447 do_fermentables(); 449 do_fermentables();
448 //do_hops(); 450 do_hops();
449 //do_yeasts(); 451 //do_yeasts();
450 //do_waters(); 452 //do_waters();
451 //do_miscs(); 453 //do_miscs();
452 //do_equipments(); 454 //do_equipments();
453 //do_styles(); 455 //do_styles();

mercurial