01.
$sql
=
"select * From t_stock "
;
02.
$query
= odbc_exec (
$link
,
$sql
);
03.
while
(
$item
= odbc_fetch_array(
$query
)){
04.
for
(
$i
=1;
$i
<=5;
$i
++){
05.
$pdf
->SetFillColor(255, 255, 127);
06.
$pdf
->SetFont(
'thsarabun'
,
'B'
, 16);
07.
$pdf
->MultiCell(55, 28,
'Title '
.
$item
[
'MA'
], 1,
'L'
, 1, 0,
''
,
''
, true);
08.
09.
}
10.
$pdf
->Ln(34);
11.
}