sort1.php
<?php
include ('connect_data.php');
header("Content-Type: text/html; charset=utf-8");
?>
<html>
<head>
<title>tablesorter</title>
<script type="text/javascript" src="jquery-latest.js"></script>
<script type="text/javascript" src="sort.js"></script>
<script type="text/javascript" src="jquery.tablesorter.js"></script>
<link href="otzyvy.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php
$table = mysql_query("SELECT com ,
time , moderation , id FROM table_com");
?>
<table id="large" cellspacing="0" class="tablesorter">
<thead>
<tr>
<th rowspan="2" class="head" class="headerSortUp" class="headerSortDown">Отзывы</th>
<th rowspan="2" class="head" class="headerSortUp" class="headerSortDown">Время</th>
<th rowspan="2" class="head" class="headerSortUp" class="headerSortDown">Модерация</th>
<th rowspan="2" class="head" class="headerSortUp" class="headerSortDown">Выборка</th>
</tr>
</thead>
<?php
if(!$table) die("Error_select: " . mysql_error());
$rows = mysql_num_rows($table);
for($j=0; $j<$rows; $j++){
$row = mysql_fetch_row($table);
?>
<tbody>
<tr>
<td> <?php echo $row[0] ?></td>
<td> <?php echo $row[1] ?></td>
<td> <?php echo $row[2] ?></td>
<td><form action="sort1.php" method="post">
Добавить<input type="checkbox" id="select_1" name="act1[<?php echo $row[3]?>]">
На модерации<input type="checkbox" id="select_0" name="act0[<?php echo $row[3]?>]">
Удалить<input type="checkbox" id="delete" name="act3[<?php echo $row[3]?>]"></td>
</tr>
</tbody><?php }?>
</table>
</body>
</html>