<? $db_hostname='localhost'; //ชื่อ host $db_username='root'; //ชื่อ user เข้า db $db_password='1234'; //กรอกรหัสผ่าน db $db_name="apcreport"; //ชื่อ db ที่ เรา create ไว้ mysql_connect($db_hostname,$db_username,$db_password) or die("Unable to Connect"); // คอนเน็ตดา ต้าเบส mysql_select_db( $db_name ); //เลือก database $strSQL = "SELECT * FROM bcitemgroup"; $objQuery = mysql_query($strSQL) or die (mysql_error()); ?> <table width="600" border="1"> <tr> <th width="91"> <div align="center">ROWORDER </div></th> <th width="98"> <div align="center">Code </div></th> <th width="198"> <div align="center">IsExport </div></th> <th width="97"> <div align="center">CreatorCode </div></th> <th width="59"> <div align="center">CreateDateTime</div></th> <th width="71"> <div align="center">LastEditorCode</div></th> <th width="71"> <div align="center">LastEditDateT</div></th> <th width="71"> <div align="center">Name</div></th> <th width="71"> <div align="center">UserGroup</div></th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <? } ?> </table> <? //mysql_close($objConnect); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง