Documents download

setQuery("SELECT SubmissionId, FieldValue FROM #__rsform_submission_values WHERE FormId = 6 AND FieldName = 'dokumentum_hu'"); $results = $db->loadObjectList(); foreach ($results as $tomb) { $submissionId = $tomb->SubmissionId; $magyar = $tomb->FieldValue; $db->setQuery("SELECT FieldValue FROM #__rsform_submission_values WHERE FormId = 6 AND FieldName = 'dokumentum_en' AND SubmissionId= '$submissionId'"); $angol= $db->loadResult(); $db->setQuery("SELECT FieldValue FROM #__rsform_submission_values WHERE FormId = 6 AND FieldName = 'dokumentum_de' AND SubmissionId= '$submissionId'"); $nemet= $db->loadResult(); $db->setQuery("SELECT FieldValue FROM #__rsform_submission_values WHERE FormId = 6 AND FieldName = 'dokumentum_file' AND SubmissionID = '$submissionId'"); $pdf = $db->loadResult(); $db->setQuery("SELECT FieldValue FROM #__rsform_submission_values WHERE FormId = 6 AND FieldName = 'termekcsalad' AND SubmissionID = '$submissionId'"); $termekcsalad = $db->loadResult(); $db->setQuery("SELECT FieldValue FROM #__rsform_submission_values WHERE FormId = 6 AND FieldName = 'dokumentum_fajta' AND SubmissionID = '$submissionId'"); $tipus= $db->loadResult(); $tomb= explode('/', $pdf); $pdf= "dokumentumok/".end($tomb); $tartalom .= "".$tipus."".$angol."".$termekcsalad.""; } ?>

Type Document download Related products