-1
<?PHP
session_start();
$_SESSION["teacher"] = "tech01";
echo "Favorite teacher is " . $_SESSION["teacher"] . ".<br>";
include 'db.php';
?>
<html>
<head></head>
<body>
<?php
if(isset($_POST['submit']))
{
$inst=$_POST['inst'];
$sub=$_POST['sub'];
$view_student="select s_name from students where s_inst='$inst' AND
s_sub='$sub' ";
$run=mysqli_query($dbcon,$view_student);
echo "<form name='form' action='atte.php' method='post'>";
echo '<input type="date" name="att">'; // currently for future use
echo "</br>";
while($row=mysqli_fetch_array($run)){
$name=$row['s_name'];
echo '<input type="checkbox" name="present" >';
echo "<label>" .$name. "</label>";
echo "<input type='hidden' name='stun' value='".$name."'/>";
echo "<input type='hidden' name='inst' value='".$inst."'/>";
echo "<input type='hidden' name='sub' value='".$sub."'/>";
echo '<input type="submit" value="Submit_attendance"
name="insert">';
echo "<br>";
}
echo "</form>";}
?>
私は学生の存在をマークするたびに、それはすべての学生の存在をマークし、どのように保存できますか? これはオンライン出席管理システムのコードです。あなたが変更する必要が私はオンライン出席システムを作成しています
私はあなたがそれで問題に遭遇した場合に、自分のコードを更新しました。 – kojow7
ありがとうございました – Utkarsh