diff options
author | Saketh1499 | 2022-02-14 12:36:42 +0530 |
---|---|---|
committer | Saketh1499 | 2022-02-14 12:36:42 +0530 |
commit | 2188b0d2ab76b5a5c2b8b6ed0456edaa1f3e87d8 (patch) | |
tree | 890aceb56c341f1d3bf22e27cda85e4235e121cf /tbc_details.inc | |
parent | 8ac8e96c558480eedf62d7dac35332d991f3bae6 (diff) | |
download | DWSIM_textbook_companion-2188b0d2ab76b5a5c2b8b6ed0456edaa1f3e87d8.tar.gz DWSIM_textbook_companion-2188b0d2ab76b5a5c2b8b6ed0456edaa1f3e87d8.tar.bz2 DWSIM_textbook_companion-2188b0d2ab76b5a5c2b8b6ed0456edaa1f3e87d8.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( |