From 000d2209153b41287719164fee3261dd3ce3a73d Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Fri, 4 Nov 2022 13:04:39 +0530 Subject: Display completed books in descending order --- display_books.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/display_books.inc b/display_books.inc index 97e4543..016162c 100755 --- a/display_books.inc +++ b/display_books.inc @@ -17,7 +17,7 @@ ORDER BY po.creation_date DESC "; $result = db_query($query); $proposal_rows = array(); - $i = 1; + $i = $result->rowCount(); $category_data = _tbc_list_of_category($preference_data->category); $output = "
"; while ($row = $result->fetchObject()) @@ -37,7 +37,7 @@ ORDER BY po.creation_date DESC $row->book . "

[ Author: " . $row->author . ", Publisher: " . $row->publisher . ", Year: " . $row->year . ", Edition: " . $row->edition . ", ISBN: " . $row->isbn . " ]", $category ); - $i++; + $i--; } //$row = $result->fetchObject() $preference_header = array( 'No', -- cgit