研究组计划有一个输出处理程序。有必要将接收到的数据构造成与上述类似的表格。请写一部分渲染代码,然后我想我应该清楚。使用的处理程序:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Succesful</title>
</head>
<body>
<?php
require 'connect.php';
mysqli_set_charset($db_connect, 'utf8');
$group_number = $_REQUEST['group_number'];
$task_family = $_REQUEST['task_family'];
$week_day = $_REQUEST['week_day'];
$week_period = $_REQUEST['week_period'];
$task_lecture = $_REQUEST['task_lecture'];
$task_index = $_REQUEST['task_index'];
$sql_select = "SELECT COUNT(*) FROM `pisos` WHERE group_number LIKE '%$group_number%' AND (task_family LIKE '%$task_family%' OR task_family2 LIKE '%$task_family%') AND week_period LIKE '%$week_period%' AND week_day LIKE '%$week_day%' AND task_lecture LIKE '%$task_lecture%' AND task_index LIKE '%$task_index%'";
$result = mysqli_query($db_connect, $sql_select);
$result_sum=$result;
$iter=0;
do
{
$sql_select = "SELECT * FROM `pisos` WHERE group_number LIKE '%$group_number%' AND (task_family LIKE '%$task_family%' OR task_family2 LIKE '%$task_family%') AND (week_period LIKE '%$week_period%' or week_period LIKE '0') AND week_day LIKE '%$week_day%' AND task_lecture LIKE '%$task_lecture%' AND task_index LIKE '%$task_index%'";
$result = mysqli_query($db_connect, $sql_select);
while ($row = mysqli_fetch_array($result)) { print_r("<p>Номер группы: ".$row['group_number']."</p><p>ПАРА №: ".$row['task_index']." Чётность: ".$row['week_period']."</p><p>Начало: ".$row['task_start']." Конец: ".$row['task_finish']."</p><p>Дисциплина: ".$row['task_name']." ".$row['task_type']."</p><p>Аудитория: ".$row['task_lecture']."</p><p>Преподаватель: ".$row['task_family'].$row['task_family2']."</p><p>___________________</p>");
}
$iter++;
}
while ($iter<$result_sum);
$iter=0;
?>
<form method='post' action='allauthor.php'><b/>
<input id='submitread' type='submit' value="Вернуться к поиску"><b/><b/>
</form>
<form method="post" action="https://site.ru">
<input id="submitback" type="submit" value="На главную">
</form>
</body>
</html>