คือผมจะทำลูปอะครับตรงส่วนตารางด้านล่าง ผมใส่โค้ดแบบนี้ละมันเละอะครับ ถ้าผมจะทำloopต้องทำไงอะครับ รบกวนด้วยครับ
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sticky Table Headers Revisited | Demo 2</title>
<meta name="description" content="Sticky Table Headers Revisited: Creating functional and flexible sticky table headers" />
<meta name="keywords" content="Sticky Table Headers Revisited" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="component">
<h2>ผลประเมิน</h2>
<table>
<thead>
<tr>
<th>Sample ID</th>
<th>Reading #1</th>
<th>Reading #2</th>
<th>Reading #3</th>
<th>Reading #4</th>
<th>Reading #5</th>
</tr>
</thead>
<tbody>
<?php for($i=1;$i<=5;$i ){
echo "<tr>";
echo "<th>Sample #1</th>";
echo "<td>52</td>";
echo "<td>40</td>";
echo "<td>9</td>";
echo "<td>47</td>";
echo "<td>31</td>";
echo "</tr>";
} ?>
</tbody>
</table>
</div>
</div><!-- /container -->
</body>
</html>