01.
$o
=0;
do
{
02.
03.
$col_show_testshow_committee
=
"0"
;
04.
if
(isset(
$row_committee
[
'committee_id'
])) {
05.
$col_show_testshow_committee
=
$row_committee
[
'committee_id'
];
06.
}
07.
mysql_select_db(
$database_connect
,
$connect
);
08.
$query_testshow_committee
= sprintf(
"SELECT tb_detailcommittee_staf.preface_id, tb_detailcommittee_staf.committee_id, tb_staf.staf_name, tb_staf.staf_last, tb_staf.staf_id, tb_position.position_type FROM tb_detailcommittee_staf INNER JOIN tb_staf ON tb_staf.staf_id = tb_detailcommittee_staf.staf_id INNER JOIN tb_position ON tb_position.position_id = tb_detailcommittee_staf.position_id WHERE tb_detailcommittee_staf.committee_id =%s "
, GetSQLValueString(
$col_show_testshow_committee
,
"int"
) );
09.
$testshow_committee
= mysql_query(
$query_testshow_committee
,
$connect
)
or
die
(mysql_error());
10.
$row_testshow_committee
= mysql_fetch_assoc(
$testshow_committee
);
11.
$totalRows_testshow_committee
= mysql_num_rows(
$testshow_committee
);
12.
13.
14.
?>
15.
<?php
16.
$o
++;
17.
18.
19.
$pdf
->SetFont(
'THSarabun'
,
'B'
,16);
20.
$pdf
->Cell(0,13,iconv(
'UTF-8'
,
'cp874'
,
''
),0,1,
'R'
);
21.
$pdf
->Cell(39,7,iconv(
'UTF-8'
,
'cp874'
,
''
.changeThaiNumber(
$row_committee
[
'committee_name'
])),0,1,
'C'
);