From 2188b0d2ab76b5a5c2b8b6ed0456edaa1f3e87d8 Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 14 Feb 2022 12:36:42 +0530 Subject: Arranging serial number in descending order --- tbc_details.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 tbc_details.inc (limited to 'tbc_details.inc') diff --git a/tbc_details.inc b/tbc_details.inc old mode 100644 new mode 100755 index b3d7e87..ad92f33 --- a/tbc_details.inc +++ b/tbc_details.inc @@ -23,7 +23,7 @@ function dwsim_tbc_completed_book_proposal_all() $output .= "Work has been completed on the following books under the Textbook Companion Project.
The list below is not the books as named but only are the solved example for DWSIM."; $preference_rows = array(); - $i = 1; + $i = $result->rowCount(); while ($row = $result->fetchObject()) { $completion_date = date("Y", $row->completion_date); @@ -34,7 +34,7 @@ function dwsim_tbc_completed_book_proposal_all() $row->university, $completion_date ); - $i++; + $i--; /*$preference_data->book . " by " . $preference_data->author . ", " . $preference_data->publisher . ", " . $preference_data->year, 'textbook-companion/textbook-run/' . $preference_data->id*/ } //$row = $result->fetchObject() $preference_header = array( -- cgit