--- a/www/prod_beerxml.php Thu Dec 05 13:25:54 2019 +0100 +++ b/www/prod_beerxml.php Thu Dec 05 22:47:40 2019 +0100 @@ -1,8 +1,8 @@ <?php -require_once('config.php'); -require_once('includes/formulas.php'); -//require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); -//require_once($_SERVER['DOCUMENT_ROOT'].'/includes/formulas.php'); +//require_once('config.php'); +//require_once('includes/formulas.php'); +require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); +require_once($_SERVER['DOCUMENT_ROOT'].'/includes/formulas.php'); $link = mysqli_connect(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); @@ -164,10 +164,10 @@ xmlwriter_end_element($xw); xmlwriter_start_element($xw, 'FG_MIN'); -xmlwriter_text($xw, sprintf("%.3f",floatval($row['st_og_min']))); +xmlwriter_text($xw, sprintf("%.3f",floatval($row['st_fg_min']))); xmlwriter_end_element($xw); -xmlwriter_start_element($xw, 'OG_MAX'); +xmlwriter_start_element($xw, 'FG_MAX'); xmlwriter_text($xw, sprintf("%.3f",floatval($row['st_fg_max']))); xmlwriter_end_element($xw);