<html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css" /> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> var height = document.getElementById('container').style.offsetheight; $.ajax({ type: 'POST', url: 'test.php', data: {'h': height}, }); </script> </head> <body> <?php $dbhost = "localhost"; $dbusername = "root"; $dbpassword = ""; $dbname = "adjust"; $mysqli = new mysqli ($dbhost, $dbusername, $dbpassword, $dbname); $strSQL = "SELECT * FROM calc3 WHERE id ='386'"; $objQuery = $mysqli->query($strSQL); $total=mysqli_num_rows($objQuery); ?> <table id="container"> <tr> <th> <div align="center">line</div></th> </tr> <?php while($objResult = mysqli_fetch_array($objQuery,MYSQLI_ASSOC)) { ?> <tr> <th class="border-lb" width="200" height='<?php echo $objResult["thk"];?>'><div align="center"><?php echo $_POST['h']; ?></div></th> </tr> <?php } ?> </table> <script> $( "th" ).resizable(); </script> <?php mysqli_close($mysqli); ?>
<script type="text/javascript"> var height = document.getElementById('container').style.offsetheight; $.ajax({ type: 'POST', url: 'test.php', data: {'h': height}, }); </script>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง