From b47a261d9412974e339dde34bf5312366af534f3 Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 14 Feb 2022 11:18:53 +0530 Subject: Arranging serial number in descending order --- lab_details.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lab_details.inc b/lab_details.inc index 59898da..8f30b59 100755 --- a/lab_details.inc +++ b/lab_details.inc @@ -8,11 +8,11 @@ $result = $query->execute(); //$result = db_query($query); $proposal_rows = array(); - $i=1; + $i=$result->rowCount(); while($row = $result->fetchObject()) { $approval_date=date("Y", $row->approval_date); $preference_rows[] = array($i, $row->university , l($row->lab_title,"lab_migration_run/".$row->id),$approval_date); - $i++; + $i--; } $preference_header = array('No','Institute', 'Lab', 'Year'); $output = theme('table', array('header' => $preference_header, 'rows' => $preference_rows)); -- cgit