www/includes/db_inventory_water_profiles.php

changeset 37
9362eb9e9e5b
parent 22
99c02fa797f9
--- a/www/includes/db_inventory_water_profiles.php	Sat Aug 25 11:40:31 2018 +0200
+++ b/www/includes/db_inventory_water_profiles.php	Sat Aug 25 13:07:13 2018 +0200
@@ -10,7 +10,7 @@
 }
 
 // get data and store in a json array
-$query = "SELECT * FROM inventory_water_profiles";
+$query = "SELECT * FROM inventory_water_profiles ORDER BY name";
 if (isset($_GET['insert'])) {
 	// INSERT COMMAND
 	$sql  = "INSERT INTO `inventory_water_profiles` SET name='" . mysqli_real_escape_string($connect, $_GET['name']);

mercurial