|
![](/images/resource/spacer.gif) |
|
FPDF ฐานข้อมูล นำมาแสดงแล้ว แต่ข้อมูล ซ้อนทับกันไม่วนรูป ไม่เรียงลงมา |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
![ฐานข้อมูลทับกัน ฐานข้อมูลทับกัน](https://www.thaicreate.com/upload/stock/20150519134755.png?v=1001)
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
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2015-05-19 13:49:59 |
By :
pongza16 |
View :
978 |
Reply :
2 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
![ฐานข้อมูลทับกัน ฐานข้อมูลทับกัน](https://www.thaicreate.com/upload/stock/20150519134755.png?v=1001)
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2015-05-19 13:51:23 |
By :
pongza16 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
![](/images/bbcode/wink.gif?v=1001) ![](/images/bbcode/wink.gif?v=1001) ![](/images/bbcode/wink.gif?v=1001) ![](/images/bbcode/wink.gif?v=1001)
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2015-05-19 21:27:19 |
By :
pongza16 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 01
|