mysql查询从我的数据库中获取数据,并通过while循环将其发布到表中的输入字段中。这工作正常,显示所有252个预期的表行。 按下相应PHP页面上的提交按钮应将数据发送到计算脚本并将数据写入数据库。PHP POST不发送所有输入
问题:只有200行正在进入处理页面。即52行不通过。我已经建立了一个快速脚本来检查输出,这也表明只有200行通过。
我已经发现:只要我一行一行地减少表格数据的数量就越多。只有3行(tipp_id,tipp_heim,tipp_gast)全部252行通过。
有没有我不知道的吞吐量限制?或者有什么想法如何解决这个问题?
查询&表(表包括252行):
$records = mysqli_query($conn, "
SELECT
sp.spiel_id,
sp.tore_heimteam,
sp.tore_gastteam,
t.match_id,
t.tipp_heim,
t.tipp_gast,
t.tipp_id
FROM
spielplan sp
LEFT JOIN tipps t
ON sp.spiel_id = t.match_id
");
while($fields = mysqli_fetch_assoc($records)) {
?>
<tr>
<td><input type="text" name="tipp_ids[]" value="<?php echo fields["tipp_id"] ?>"></td>
<td><input type="text" name="goals_hometeams[]" value="<?php echo $fields["tore_heimteam"] ?>"></td>
<td><input type="text" name="goals_guestteams[]" value="<?php echo $fields["tore_gastteam"] ?>"></td>
<td><input type="text" name="tipp_guestteams[]" value="<?php echo $fields["tipp_gast"] ?>"></td>
<td><input type="text" name="tipp_hometeams[]" value="<?php echo $fields["tipp_heim"] ?>"></td>
</tr>
脚本来检查POST输出(输出= 200行):
$goalsHome = $_POST['goals_hometeams'];
$goalsGuest = $_POST['goals_guestteams'];
$tippHomes = $_POST['tipp_hometeams'];
$tippGuests = $_POST['tipp_guestteams'];
$tipp_id = $_POST['tipp_ids'];
$i=0;
foreach($goalsHome as $key => $ghome) {
$i++;
echo $ghome.";";
echo $goalsGuest[$key].";";
echo $tippHomes[$key].";";
echo $tippGuests[$key].";";
echo $tipp_id[$key].";";
echo "<br>";
}
echo $i;
表为什么形式计值??? –