Я работаю над созданием документа PDF через php, но по моему для l oop все печатается в той же строке, а не в следующей строке,
Вот мой код -
for($i=0;$i<count($_GET);$i++){
if(trim($_GET[$i])!="") {
$printQueryResult = runPrintQuery($_GET[$i]);
$totalRows = mysql_num_rows($printQueryResult);
$resultArrayIndex = mysql_fetch_array($printQueryResult);
//Headline of index
$pdf->setXY(40, 41);
$pdf->SetFillColor(238, 236, 225);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(25, 6, formatPubDate($resultArrayIndex['title']), 0, 0, 'L', True);
}
}
Вот мой вывод
и вот что я пытаюсь достичь
каждый текст в новой строке.