summaryrefslogtreecommitdiff
path: root/tbc_details.inc
diff options
context:
space:
mode:
authorSashi202022-02-15 11:08:20 +0530
committerGitHub2022-02-15 11:08:20 +0530
commite7163afeeeb8373af4e4509ed13099bdeb9a06a7 (patch)
tree890aceb56c341f1d3bf22e27cda85e4235e121cf /tbc_details.inc
parentc11e8af8ac96cf0358c89d4e79e1008e335038e2 (diff)
parent2188b0d2ab76b5a5c2b8b6ed0456edaa1f3e87d8 (diff)
downloaddwsim_textbook_companion-e7163afeeeb8373af4e4509ed13099bdeb9a06a7.tar.gz
dwsim_textbook_companion-e7163afeeeb8373af4e4509ed13099bdeb9a06a7.tar.bz2
dwsim_textbook_companion-e7163afeeeb8373af4e4509ed13099bdeb9a06a7.zip
Merge pull request #7 from Saketh1499/developmentHEADmaster
Arranging serial number in descending order
Diffstat (limited to 'tbc_details.inc')
-rwxr-xr-x[-rw-r--r--]tbc_details.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbc_details.inc b/tbc_details.inc
index b3d7e87..ad92f33 100644..100755
--- a/tbc_details.inc
+++ b/tbc_details.inc
@@ -23,7 +23,7 @@ function dwsim_tbc_completed_book_proposal_all()
$output .= "Work has been completed on the following books under the Textbook Companion Project. <br>
<span style='color:red;'>The list below is not the books as named but only are the solved example for DWSIM.</span>";
$preference_rows = array();
- $i = 1;
+ $i = $result->rowCount();
while ($row = $result->fetchObject())
{
$completion_date = date("Y", $row->completion_date);
@@ -34,7 +34,7 @@ function dwsim_tbc_completed_book_proposal_all()
$row->university,
$completion_date
);
- $i++;
+ $i--;
/*$preference_data->book . " by " . $preference_data->author . ", " . $preference_data->publisher . ", " . $preference_data->year, 'textbook-companion/textbook-run/' . $preference_data->id*/
} //$row = $result->fetchObject()
$preference_header = array(