<?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <p align="center"><strong>แสดงรายการประเภทวัตถุดิบอาหารไทย</strong></p> <form id="form1" name="form1" method="post" action="qr_addstaplecategory.php"> <table width="619" border="1" align="center"> <thead> <tr> <td width="237" align="center">รหัสประเภทวัตถุดิบอาหาร</td> <td width="276" align="center">ชื่อประเภทวัตถุดิบอาหาร</td> <td width="46" align="center">แก้ไข</td> <td width="33" align="center">ลบ</td> </tr> <thead> <tbody> <?php include('connect_db.php'); $sql_selectshow="SELECT staplecategory_id, staplecategory_name FROM staplecategory_tb"; $qr_sel= mysql_query($sql_selectshow); while($row = mysqli_fetch_array($qr_sel)){ ?> <tr> <td class="style1"> <div align="center"><?php echo $row[0];?></div></td> <td class="style1"> <div align="center"><?php echo $row[1];?></div></td> <td align="center">แก้ไข</td> <td align="center">ลบ</td> </tr> <?php }//end ioop ?> </tbody> </table> </form> <p> </p> </body> </html>
<?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <p align="center"><strong>แสดงรายการประเภทวัตถุดิบอาหารไทย</strong></p> <form id="form1" name="form1" method="post" action="qr_addstaplecategory.php"> <table width="619" border="1" align="center"> <thead> <tr> <td width="237" align="center">รหัสประเภทวัตถุดิบอาหาร</td> <td width="276" align="center">ชื่อประเภทวัตถุดิบอาหาร</td> <td width="46" align="center">แก้ไข</td> <td width="33" align="center">ลบ</td> </tr> <thead> <tbody> <?php include('connect_db.php'); $sql_selectshow="SELECT * FROM staplecategory_tb"; $qr_sel= mysqli_query($sql_selectshow); // ลอง query ด้วย mysqli ครับ while($row = mysqli_fetch_array($qr_sel)){ ?> <tr> <td class="style1"> <div align="center"><?php echo $row[0];?></div></td> <td class="style1"> <div align="center"><?php echo $row[1];?></div></td> <td align="center">แก้ไข</td> <td align="center">ลบ</td> </tr> <?php }//end ioop ?> </tbody> </table> </form> <p> </p> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง