From 7e8b89df3bc1c05871b7bfb000c7964f55ad0c8b Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Tue, 15 Feb 2022 15:50:05 +0530 Subject: Arranging serial number in descending order --- pssp_details.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pssp_details.inc b/pssp_details.inc index 7cffb85..e469cc2 100755 --- a/pssp_details.inc +++ b/pssp_details.inc @@ -18,7 +18,7 @@ function om_pssp_completed_proposals_all() { $output .= "Work has been completed for the following Power System Simulations. We welcome your contributions." . "
"; $preference_rows = array(); - $i = 1; + $i = $result->rowCount(); while ($row = $result->fetchObject()) { $proposal_id = $row->id; @@ -36,7 +36,7 @@ function om_pssp_completed_proposals_all() $row->university, $completion_date ); - $i++; + $i--; } //$row = $result->fetchObject() $preference_header = array( 'No', -- cgit