Witam generuje pdf-a przez fpdf, cos mi tam wychodzi ale potrzebuje wciągnąć w to pętlę i ni jak nie mogę sobie z tym poradzić
require('pdf/fpdf.php');
require_once('pdf/html2fpdf.php');
require_once('pdf/htmltoolkit.php');
require_once('pdf/html2fpdf.php');
$pdf = new HTML2FPDF('P','mm','A4');
//tutaj wczytuję zawartosc pdf-a
$strona='
<html>
<body>
<table width="100%" border="0">
<tr>
<td width="40%">
'.$pdf->SetFont('Times','',8).'<b>FAKTURA VAT Nr '.$rr[nr_dok_spr].'</b>
</td>
<td width="25%"></td>
'.$pdf->SetFont('arial','',6).'
<td width="40%" align="center">
'.$pdf->SetFont('arial','',6).'
<font size="6">Data sprzedaży / wykonania usługi:'.$rr[data_sprzedazy].'</font></td></tr>
'.$pdf->SetFont('Times','',10).'
while($r = mysql_fetch_array($wyniktowary))
{
$lp++;
<tr>
<td width="5%" >'.$lp.'</td>
<td width="30%">'.$r[nazwa_zw].'</td>
<td width="5%" >'.$r[jm].'</td>
<td width="10%">'.$r[ilosc].'</td>
<td width="10%">'.$r[cenaN].'</td>
</tr>
}
</table>
</body></html>
';