Fixed all XML export modules skipping the first record.

Sat, 05 Mar 2022 22:32:48 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 05 Mar 2022 22:32:48 +0100
changeset 788
812ce4c5da2a
parent 787
9f8ede1b2090
child 789
e6e696add0b3

Fixed all XML export modules skipping the first record.

www/export_equipments.php file | annotate | diff | comparison | revisions
www/export_hops.php file | annotate | diff | comparison | revisions
www/export_mashs.php file | annotate | diff | comparison | revisions
www/export_miscs.php file | annotate | diff | comparison | revisions
www/export_styles.php file | annotate | diff | comparison | revisions
www/export_suppliers.php file | annotate | diff | comparison | revisions
www/export_waters.php file | annotate | diff | comparison | revisions
www/export_yeasts.php file | annotate | diff | comparison | revisions
--- 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);

mercurial