I am running the following query:
$sql_1 = "SELECT `mb_transactions`.`TransactionID` AS `TXID` FROM `mb_transactions`";
$data_1 = $db->query($sql_1);
$count = count($data_1, COUNT_RECURSIVE);
if ($count > 1){
foreach ($data_1 as $transaction_1) {
$pdf->Cell($colWidths4[0], $pdf->fontHeight($fontSize), $transaction_1['TXID'], $border, 0, 'L');
$pdf->Cell($colWidths4[1], $pdf->fontHeight($fontSize), '', $border, 0, 'L');
$pdf->Cell($colWidths4[2], $pdf->fontHeight($fontSize), '', $border, 0, 'L');
$pdf->Cell($colWidths4[3], $pdf->fontHeight($fontSize), '', $border, 0, 'L');
$pdf->Ln();
}
}
However I am only getting the first character from the result that shows. When I do a var_dump($transaction_1) I am seeing string(2) “11” …etc
Appreciate any insight anyone cares to share
try this instead for each