<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Word</title>
</head>
<body>
<form method="post" action="">
<?php
include("connect.php");
mysqli_query($link,"SET NAMES UTF8");
$select="SELECT * FROM students_info WHERE bash='A'";
$result=mysqli_query($link,$select) or die(mysql_error());
while($row=mysqli_fetch_array($result))
{
echo $row['Name']."<input type='text' name='warzy1'>"."<br>";
}
?>
<input type="submit" name="submit" value="Save">
</form>
</body>
</html>
<?php
include("connect.php");
mysqli_query($link,"SET NAMES UTF8");
[email protected]$_POST['warzy1'];
$warz=implode(",",(array)$warzy1);
$insert="INSERT INTO word (Warzy_Yakam) VALUES ('$warz')";
mysqli_query($link,$insert) or die(mysqli_error($link));
?>
我在PHP MySQL的数据库和一些输入与名学生申请我怎么能同时插入多个数据给每个学生一个表?影像中出现如何在PHP MySQL中将多个数字插入表中?
https://dev.mysql.com/doc/refman/5.7/en/insert.html –