diff options
author | Sashi20 | 2022-02-15 11:08:20 +0530 |
---|---|---|
committer | GitHub | 2022-02-15 11:08:20 +0530 |
commit | e7163afeeeb8373af4e4509ed13099bdeb9a06a7 (patch) | |
tree | 890aceb56c341f1d3bf22e27cda85e4235e121cf /tbc_details.inc | |
parent | c11e8af8ac96cf0358c89d4e79e1008e335038e2 (diff) | |
parent | 2188b0d2ab76b5a5c2b8b6ed0456edaa1f3e87d8 (diff) | |
download | DWSIM_textbook_companion-master.tar.gz DWSIM_textbook_companion-master.tar.bz2 DWSIM_textbook_companion-master.zip |
Arranging serial number in descending order
Diffstat (limited to 'tbc_details.inc')
-rwxr-xr-x[-rw-r--r--] | tbc_details.inc | 4 |
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( |