summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlab_details.inc4
1 files 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));