summaryrefslogtreecommitdiff
path: root/custom_model_details.inc
diff options
context:
space:
mode:
authorSaketh14992022-02-14 12:26:05 +0530
committerSaketh14992022-02-14 12:26:05 +0530
commitb56513f2d480880b0bb0d101adcab9f6e11d9648 (patch)
tree2033e5c062811328d9dd748b16d38c11747ace2c /custom_model_details.inc
parent242d1512278a390330b5d417bc0248fcb1f9d5cc (diff)
downloaddwsim_custom_model-b56513f2d480880b0bb0d101adcab9f6e11d9648.tar.gz
dwsim_custom_model-b56513f2d480880b0bb0d101adcab9f6e11d9648.tar.bz2
dwsim_custom_model-b56513f2d480880b0bb0d101adcab9f6e11d9648.zip
Arranging serial number in descending order
Diffstat (limited to 'custom_model_details.inc')
-rwxr-xr-xcustom_model_details.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom_model_details.inc b/custom_model_details.inc
index 592a8b3..903eec8 100755
--- a/custom_model_details.inc
+++ b/custom_model_details.inc
@@ -19,7 +19,7 @@ function custom_model_completed_proposals_all()
{
$output .= "Work has been completed for the following custom model. We welcome your contributions." . "<hr>";
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$proposal_id = $row->id;
@@ -31,7 +31,7 @@ function custom_model_completed_proposals_all()
$row->university,
$completion_date
);
- $i++;
+ $i--;
} //$row = $result->fetchObject()
$preference_header = array(
'No',