I got two tables again.. What's wrong with my CCS styling?
I got two tables again.. What's wrong with my CCS styling?
Your code actually display all the rows of my table but then it actually display two table instead of one.. hmmm :(
Whew..the code works but it display two tables, instead of one table only.. I need one table displaying all the rows from table of my database..
Yes,only the last row was displayed. I need the all the rows from my table to be displayed. Is there a problem in my MPDF Library?
I've tried it and i got a blank page..
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;
?>
Thank you for helping me.. I'll do your suggestions.. :D
hi..
I have a form that needs 10 inputs from a user.. Now my problem is, once the user have input the 10 needed information, he/she cannot input another information and there will be a message stating that he/she cannot input the information because past information have inputed.
What do I need to add to check if the user have input 10 information and can no longer input after that one..
Thanks.. :D