|
|
|
FPDF ฐานข้อมูล นำมาแสดงแล้ว แต่ข้อมูล ซ้อนทับกันไม่วนรูป ไม่เรียงลงมา |
|
|
|
|
|
|
|
Code (PHP)
mysql_select_db($database_conn, $conn);
$query_listcomittee = "SELECT * FROM tb_committee";
$listcomittee = mysql_query($query_listcomittee, $conn) or die(mysql_error());
$row_listcomittee = mysql_fetch_assoc($listcomittee);
$totalRows_listcomittee = mysql_num_rows($listcomittee);
$listcomittee = mysql_query($query_listcomittee, $conn) or die(mysql_error());
$num_rows = mysql_num_rows($listcomittee);
//$countname = $c['committee_id'];
$i = 0;
$page = 1;
while($reg = mysql_fetch_array($listcomittee)) {
$i++;
$pdf->SetXY(30,120);
$pdf->Cell(20,7,iconv( 'UTF-8','cp874',''.changeThaiNumber($i)),0,0,'C');
//$pdf->Cell(20,7,iconv( 'UTF-8','TIS-620',''.$reg['committee_id']),1,0,'L');
$pdf->SetXY(45,120);
$pdf->Cell(50,7,iconv( 'UTF-8','cp874',''.$reg['committee_name']),0,0,'L' );
$pdf->Ln();
}
}
โค๊ดส่วนนี้ครับ ที่ใช้ while แล้วข้อมูลไม่วนไ
Tag : PHP
|
|
|
|
|
|
Date :
2015-05-19 13:49:59 |
By :
pongza16 |
View :
968 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2015-05-19 13:51:23 |
By :
pongza16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2015-05-19 21:27:19 |
By :
pongza16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|