Sat, 05 Mar 2022 22:32:48 +0100
Fixed all XML export modules skipping the first record.
--- a/www/export_equipments.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_equipments.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_equipments ORDER BY name"); -$row = mysqli_fetch_array($result); /*
--- a/www/export_hops.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_hops.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_hops ORDER BY origin,name"); -$row = mysqli_fetch_array($result); $hoptype = array( 'Bittering', 'Aroma', 'Both' );
--- a/www/export_mashs.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_mashs.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM profile_mash ORDER BY name"); -$row = mysqli_fetch_array($result); $mashsteptype = array( 'Infusion', 'Temperature', 'Decoction' );
--- a/www/export_miscs.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_miscs.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_miscs ORDER BY name"); -$row = mysqli_fetch_array($result); $misctype = array( 'Spice', 'Herb', 'Flavor', 'Fining', 'Water agent', 'Yeast nutrient', 'Other' );
--- a/www/export_styles.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_styles.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM profile_styles ORDER BY style_guide,style_letter,name"); -$row = mysqli_fetch_array($result); $styletype = array( 'Lager', 'Ale', 'Mead', 'Wheat', 'Mixed', 'Cider' );
--- a/www/export_suppliers.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_suppliers.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_suppliers ORDER BY name"); -$row = mysqli_fetch_array($result);
--- a/www/export_waters.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_waters.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_waters ORDER BY name"); -$row = mysqli_fetch_array($result);
--- a/www/export_yeasts.php Sat Mar 05 16:54:29 2022 +0100 +++ b/www/export_yeasts.php Sat Mar 05 22:32:48 2022 +0100 @@ -13,7 +13,6 @@ } $result = mysqli_query($link, "SELECT * FROM inventory_yeasts ORDER BY laboratory,product_id,name"); -$row = mysqli_fetch_array($result); function field($x, $field, $value) { xmlwriter_start_element($x, $field);