title: Export HTML Table to PDF using mPDF
body: <p>I have am using mPDF to convert and export the data from my html table to PDF. The button on my table works and the data can be exported. However the code only passes <a href="https://i.stack.imgur.com/DrTbt.png" rel="nofollow noreferrer">one variable</a>. I want to pass all the variables. I cannot pinpoint what else is missing in my code. Can anyone help me?</p>
  
  <p>Here is the link button from index.php:</p>
  
  <pre><code>while($row = mysqli_fetch_array($result)){
           echo "&lt;tr&gt;";
           echo "&lt;td&gt;" .$row['eventvolunteerID'] . "&lt;/td&gt;";
           echo "&lt;td&gt;" .$row['eventTitle'] . "&lt;/td&gt;";
           echo "&lt;td&gt;" .$row['rollno'] . "&lt;/td&gt;";
           echo "&lt;td&gt;" .$row['eventDate'] . "&lt;/td&gt;";
           echo "&lt;td&gt;" .$row['eventTime'] . "&lt;/td&gt;";
           echo "&lt;td&gt;" .$row['eventLimit'] .  "&lt;/td&gt;";
           echo "&lt;td&gt;&lt;a href='makepdf2.php?eventvolunteerID=".$row['eventvolunteerID']."'&gt;Create PDF&lt;/a&gt;&lt;/td&gt;";
           echo "&lt;/tr&gt;";
  </code></pre>
  
  <p>Here is my code for processing the PDF (makepdf2.php): </p>
  
  <pre><code>&lt;?php
  require_once __DIR__ . '/vendor/autoload.php';
  if(isset($_GET['eventvolunteerID'])) {
  
  $eventvolunteerID = $_GET['eventvolunteerID'];
  $eventTitle = $_GET['eventTitle'];
  $rollno = $_GET['rollno'];
  $eventDate = $_GET['eventDate'];
  $eventTime = $_GET['eventTime'];
  $eventLimit = $_GET['eventLimit'];
  
  $mpdf = new \Mpdf\Mpdf();
  
  $data = '';
  $data .= '&lt;strong&gt;Event Volunteer ID:&lt;/strong&gt; ' . $eventvolunteerID . '&lt;br/&gt;';
  $data .= '&lt;strong&gt;Event Title:&lt;/strong&gt; ' . $eventTitle . '&lt;br/&gt;';
  $data .= '&lt;strong&gt;Roll no.:&lt;/strong&gt; ' . $rollno . '&lt;br/&gt;';
  $data .= '&lt;strong&gt;Event Date:&lt;/strong&gt; ' . $eventDate . '&lt;br/&gt;';
  $data .= '&lt;strong&gt;Event Time:&lt;/strong&gt; ' . $eventTime . '&lt;br/&gt;';
  $data .= '&lt;strong&gt;Event Limit:&lt;/strong&gt; ' . $eventLimit . '&lt;br/&gt;';
  $mpdf-&gt;WriteHTML($data);
  $mpdf-&gt;Output('myfile.pdf', 'D');
  }
  ?&gt;
  </code></pre>
  
  <p>Please do help. Thank you.</p>