السلام عليكم ورحمة الله وبركاته
هذا الكود
<table width="252" border="1" cellspacing="1" cellpadding="1">
<thead>
<tr bgcolor="#000000">
<th width="81" align="center"><font color="#FFFFFF">id</font></th>
<th width="70" align="center"><font color="#FFFFFF">name</font></th>
<th width="83" align="center"><font color="#FFFFFF">date</font></th>
</tr>
<thead>
<?php do {
?>
<tr>
<td width="81" align="center">'.$id.'</td>
<td width="70" align="center">'.$name.'</td>
<td width="83" align="center">'.$date.'</td>
</tr>
<?php } while ($row_R1 = mysql_fetch_assoc($R1)); ?>
</table>اريده على tcpdf
كتبته بهذه الطريقة ولا يعطيني النتيجة خاطئة
$html = '
<table width="252" border="1" cellspacing="1" cellpadding="1">
<thead>
<tr bgcolor="#000000">
<th width="81" align="center"><font color="#FFFFFF">id</font></th>
<th width="70" align="center"><font color="#FFFFFF">name</font></th>
<th width="83" align="center"><font color="#FFFFFF">date</font></th>
</tr>
<thead>
<?php do {
?>
<tr>
<td width="81" align="center">'.$id.'</td>
<td width="70" align="center">'.$name.'</td>
<td width="83" align="center">'.$date.'</td>
</tr>
<?php } while ($row_R1 = mysql_fetch_assoc($R1)); ?>
</table>';
$pdf->writeHTML($html, 0, 'C', 1, 0, '', '', true);وجزاكم الله خير