<?php session_start(); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <? mysql_connect("localhost","root","1234"); mysql_select_db("tsureserve"); mysql_query("SET NAMES UTF8"); //select data from member table $sql = "select * from product"; $row = mysql_query($sql); while($row_show=mysql_fetch_array($row)) { if($row_show["Pro_num"]<$row_show["Pro_statut"]){ ?> <script>alert(' มีสินค้ากำลังใกล้หมดกรุณาสั่งซื้อสินค้าเพิ่มด้วยค่ะ ');window.location="lookpro.php"</script> <? }else{ ?> <script>alert('ยินดีตอนรับเจ้าหน้าที่ร้านสวัสดิการค่ะ');window.location="indexadmin.php"</script> <?php } }
<?php session_start(); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <? mysql_connect("localhost","root","1234"); mysql_select_db("tsureserve"); mysql_query("SET NAMES UTF8"); //select data from member table $sql = "select * from product"; $row = mysql_query($sql); $Bypass=0; while($row_show=mysql_fetch_array($row)) { if($row_show["Pro_num"]<$row_show["Pro_statut"]){ $Bypass=$Bypass+1; } } if($Bypass != 0){ echo "window.location='lookpro.php';"; }else{ echo "window.location='indexadmin.php';"; } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง