summaryrefslogtreecommitdiff
path: root/download.inc
diff options
context:
space:
mode:
Diffstat (limited to 'download.inc')
-rwxr-xr-xdownload.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/download.inc b/download.inc
index a329bf3..c034eac 100755
--- a/download.inc
+++ b/download.inc
@@ -308,7 +308,7 @@ function dwsim_flowsheet_download_proposals()
{
$root_path = dwsim_flowsheet_path();
$result = db_query("SELECT e.contributor_name as Contirbutor_Name, u.mail as Email_ID, e.project_title as Title, e.contact_no as Contact, from_unixtime(actual_completion_date,'%Y') as Year FROM dwsim_flowsheet_proposal as e JOIN users as u ON e.uid = u.uid WHERE e.approval_status=3 ORDER BY actual_completion_date DESC");
-
+//var_dump($result->rowCount());die();
//$all_proposals_q = $result->execute();
$participants_proposal_id_file = $root_path . "participants-proposals.csv";
$fp = fopen($participants_proposal_id_file, "w");
@@ -323,11 +323,11 @@ function dwsim_flowsheet_download_proposals()
fputcsv($fp, $items);
while($row = $result->fetchObject()) {
$items = array(
- $row->contributor_name,
- $row->mail,
- $row->project_title,
- $row->contact_no,
- $row->actual_completion_date
+ $row->Contirbutor_Name,
+ $row->Email_ID,
+ $row->Title,
+ $row->Contact,
+ $row->Year
);
fputcsv($fp, $items);
}