Mon, 31 Dec 2018 16:48:56 +0100
Added more information on the brewday tab. Move almost all screen init widgets in the source so they are in the Tabs order. This should make searching for them easier.
<?php require_once('config.php'); $query = "SELECT * FROM inventory_hops ORDER BY origin,name"; $connect = mysqli_connect(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); if (! $connect) { echo "[]"; return; } $result = mysqli_query($connect, $query); while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { $hops[] = array( 'record' => $row['record'], 'name' => $row['name'], 'alpha' => $row['alpha'], 'beta' => $row['beta'], 'humulene' => $row['humulene'], 'caryophyllene' => $row['caryophyllene'], 'cohumulone' => $row['cohumulone'], 'myrcene' => $row['myrcene'], 'hsi' => $row['hsi'], 'total_oil' => $row['total_oil'], 'useat' => $row['useat'], 'type' => $row['type'], 'form' => $row['form'], 'origin' => $row['origin'], 'inventory' => $row['inventory'], 'cost' => $row['cost'] ); } echo json_encode($hops);