diff --git a/phpInterface/shoppingList.php b/phpInterface/shoppingList.php index 5f5dedf..d9ec839 100644 --- a/phpInterface/shoppingList.php +++ b/phpInterface/shoppingList.php @@ -162,6 +162,20 @@ if(oneListExists()) { + $SQL_command = "SELECT * FROM lists ORDER BY creationTime DESC LIMIT 0,1"; + + $mysqli_result = DBLink::getDbLink()->query($SQL_command); + + if ($row = mysqli_fetch_object($mysqli_result)) + { + echo "List created on ".date("l, d.m.Y", ($row->creationTime)/1000)." at ".date("G:i:s", ($row->creationTime)/1000)."
"; + + if(isset($row->comment) && strlen($row->comment) > 0) + echo "".$row->comment."
"; + + echo "
"; + } + $SQL_command = "SELECT * FROM listEntries INNER JOIN products ON listEntries.productId=products.id INNER JOIN storeTypes ON products.storeTypeId = storeTypes.id WHERE listEntries.listId=(SELECT id FROM `lists` ORDER BY creationTime DESC LIMIT 1) ORDER BY storeTypes.name, products.name ASC"; $mysqli_result = DBLink::getDbLink()->query($SQL_command);