diff --git a/ddbank.sh b/ddbank.sh index 87dcd43..17d6a9f 100755 --- a/ddbank.sh +++ b/ddbank.sh @@ -172,6 +172,7 @@ do echo "" echo "1) Show Transactions for user" echo "2) Show last # Transactions." + echo "3) Show last 5 Transactions." echo "" echo "q) Go back." echo :: @@ -189,8 +190,9 @@ do if [ $tmenu_num2 = 0 ]; then { tmenu_num2=all } fi - $db_conn "select id,username,amount,timestamp from transaction order by timestamp DESC limit $tmenu_num2;" -;; + $db_conn "select id,username,amount,timestamp from transaction order by timestamp DESC limit $tmenu_num2;" ;; + 3 ) echo "" + $db_conn "select id,username,amount,timestamp from transaction order by timestamp DESC limit 5;" [0q] ) break ;; * ) clear ;;