ciao a tutti,
funziona tutto bene si duplica le volte giuste ma visualizzo sempre lo stesso record
mi fate capire perchè... grazie mille
codice:
require('../../fpdf/fpdf.php');
$sezione = $row_RICERCA['sezione'];
$sezione = strtoupper($sezione);
$articolo = $row_RICERCA['articolo'];
$articolo = strtoupper($articolo);
$categoria = $row_RICERCA['categoria'];
$categoria = strtoupper($categoria);
$cliente = $_POST['cliente'];
$cliente = strtoupper($cliente);
$data = date('j-m-Y');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',6);
$title='LISTINO PREZZI';
$pdf->Image("../../layout/logo.jpg",55,10,100);
$pdf->MultiCell(0,40,"LISTINO IN CONCESSIONE A $cliente STAMPATO IN DATA $data", 0, 'center');
$pdf->MultiCell(0,60,"SEZIONE: $sezione - CATEGORIA: $categoria", 0, 'center');
do {
$pdf->SetFont('Arial','B',6);
$pdf->MultiCell(0,60,"CIAO", 0, 'center');
$pdf->Image("../../images/$articolo.jpg",55,50,100);
} while ($row_RICERCA = mysql_fetch_assoc($RICERCA));
$pdf->Output();
//$pdf->Output("../../public/pdf/$cliente.pdf");
mysql_free_result($categoria);
mysql_free_result($RICERCA);
mysql_free_result($fascia);
mysql_select_db($database_conn, $conn); $query_fascia = "SELECT * FROM fascia ORDER BY cat_sconto DESC"; $fascia = mysql_query($query_fascia, $conn) or die(mysql_error());
$row_fascia = mysql_fetch_assoc($fascia);
$totalRows_fascia = mysql_num_rows($fascia);
mysql_free_result($categoria); mysql_free_result($RICERCA);
mysql_free_result($fascia);