Hi..
I am using MPDF Library to convert my php page into a pdf format. I've displayed already the needed data from my database but my problem is that not all data in the row are being displayed in the pdf. I am having a hard time to display all data in the row..Can someone help me with this problem? Thanks..
<?php
session_start();
include 'configuration.php';
$event= "football";
$sql = "SELECT * FROM schedule WHERE event= '$event' AND day=1";
$result = mysql_query($sql);
while ($rows = mysql_fetch_array($result)) {
$html = '<html><body><h4><center>Event Schedule</center></h4>';
$html .= '<table class = "bpmTopnTailC" align="center"><thead>
<tr class="headerrow">
<th>Competing Team' . "<br/> ". $rows['team'] . '</th>
<td><p>Date</p>' . $rows['date'] . '</td>
<td><p>Time</p>' . $rows['time'] . '</td>
<td><p>Venue</p>' . $rows['venue'] . '</td>
</tr></thead></table>';
}
$html .= '</body></html>';
include("mpdf.php");
$mpdf=new mPDF('c','A4','','',32,25,27,25,16,13);
$mpdf->list_indent_first_level = 0; // 1 or 0 - whether to indent the first level of a list
// LOAD a stylesheet
$stylesheet = file_get_contents('mpdfstyletables.css');
$mpdf->WriteHTML($stylesheet,1); // The parameter 1 tells that this is css/style only and no body/html/text
$mpdf->WriteHTML($html,2);
$mpdf->Output('mpdf.pdf','I');
exit;
?>