Wed, 16 Oct 2019 21:05:03 +0200
Added dutch array strings to a global php script. Changed fermentables, hops, yeast and misc inventory scripts to use these strings between the database scripts and javascript scripts. This makes filtering on types strings useable. Added these changes to the product/recipe forum and print exports too.
<?php require_once('config.php'); #Connect to the database $connect = mysqli_connect(DBASE_HOST, DBASE_USER, DBASE_PASS, DBASE_NAME); if (! $connect) { die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error()); } mysqli_set_charset($connect, "utf8" ); $sql = "UPDATE `mon_co2meters` SET "; $sql .= "beername='" . mysqli_real_escape_string($connect, $_POST['beername']); $sql .= "', beercode='" . mysqli_real_escape_string($connect, $_POST['beercode']); $sql .= "', beeruuid='" . mysqli_real_escape_string($connect, $_POST['beeruuid']); $sql .= "' WHERE uuid='" . $_POST['uuid'] . "';"; $result = mysqli_query($connect, $sql); if (! $result) { syslog(LOG_NOTICE, "cmd_co2meters: result: ".mysqli_error($connect)); } else { syslog(LOG_NOTICE, "cmd_co2meters: updated record ".$_POST['uuid']); } echo $result; ?>