คำตอบที่ได้รับเลือกจากเจ้าของกระทู้
▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ

สอบถามวิธี loop ใน loop ข้อมูลใน table mpdf ได้ไหมครับ
สอบถามวิธี loop ใน loop ข้อมูลใน table mpdf ได้ไหมครับ
<?php include('./server/db.php'); ?>
<?php if ($_SESSION == 'QC' o
สมาชิกหมายเลข 4343026
ช่วยแก้โค้ด error หน่อยค้าาาาาา
error แบบนี้เพราะอะไรหรอค่ะ
Fatal error: Call to undefined function normalDateToSQL() in C:\AppServ\www\booking\rr.php on line 19
อันนี้เป็นหน้า
สมาชิกหมายเลข 5524518
ช่วยดูโค๊ดหน้าออกรายงาน หน่อยค่ะ
คือ 1. ปัญหาที่เจอคือ กดออกรายงานเป็นไฟล์ PDF มันจะเป็น อักษรสี่เหลี่ยมอ่ะค่ะ
2. เจอ error
Notice: Undefined index: SELECT in C:\xampp\htdo
สมาชิกหมายเลข 3540097
mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, แก้ยัไงได้บ้างคะ
พอมีใครใจดีดูให้หน่อบมั้ยคะ ว่าเกิดจากอะไร
Full Code ค่ะ
<?php
//connect database and select information from database
include 'connect.php';
$sql = "select * from clientdata where name like '%{$_POST['itemname']}%'";
$query = mysqli_query($link, $sql);
?>
<!-- show table topics --> <!-- -->
<div class="tbl-header">
<table cellpadding="0" cellspacing="0" border="0">
<thead>
<tr>
<th style="width:4%" >No.</th>
<th style="width:23%;text-align:center;" >Nama Client</th>
<th style="width:23%;text-align:center;">Salinan No. IC</th>
<th style="width:23%;text-align:center;">Salinan Geran Tanah</th>
<th style="width:23%;text-align:center;">Download PDF</th>
</tr>
</thead>
</table>
</div>
<!-- show information from database while live search -->
<div class="tbl-content">
<table cellpadding="0" cellspacing="0" border="0" id="list-data">
<tbody>
<?php $i=1; while ($result = mysqli_fetch_assoc($query)) { ?> //เป็นตรงนี้
<tr>
<td style="width:4%;"><?php echo $bil;?></td>
<td style="width:23%; text-align:center;" ><?php echo $row['nama'];?></td>
<td style="width:23%; text-align:center;"><?php echo $row['snoic'];?></td>
<td style="width:23%; text-align:center;"><?php echo $row['sgran'];?></td>
<td style="width:23%; text-align:center;"><?php echo $row['sgran'];?></td>
</tr>
<?php $i++; } ?>
</tbody>
</table>
</div>