diff options
-rwxr-xr-x | pssp_details.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pssp_details.inc b/pssp_details.inc index e469cc2..2fc72a4 100755 --- a/pssp_details.inc +++ b/pssp_details.inc @@ -69,7 +69,7 @@ function om_pssp_progress_all() { $page_content .= "Work is in progress for the following Power System Simulation under Power System Simulation Project<hr>"; $preference_rows = array(); - $i = 1; + $i = $result->rowCount(); while ($row = $result->fetchObject()) { $approval_date = date("Y", $row->approval_date); @@ -80,7 +80,7 @@ function om_pssp_progress_all() $row->university, $approval_date ); - $i++; + $i--; } //$row = $result->fetchObject() $preference_header = array( 'No', @@ -95,4 +95,4 @@ function om_pssp_progress_all() )); } return $page_content; -}
\ No newline at end of file +} |