gpt4 book ai didi

php - 解析错误 : syntax error, 意外 '<<' (T_SL)

转载 作者:行者123 更新时间:2023-11-29 04:44:46 24 4
gpt4 key购买 nike

<分区>

我有这段代码,但我得到的是 Parse error: syntax error, unexpected '<<' (T_SL)

<?php

$id = $_GET['id'];
$con = mysqli_connect("localhost","root","root","chess");
$result = mysqli_query($con , "select * from members where id=$id");

echo <<<_END;
<form action = "updatemem.php" method = 'POST'>
<br><br><br><br>

<center>

<b>EDIT RECORD</b><br><br>

while($row = mysqli_fetch_array($result))
{
echo "ID: <input type='text' name='id' value='$row[id]'><br/>";
echo "Lastname: <input type='text' name='lastname' value='$row[lastname]'><br/>";
echo "Codename: <input type='password' name='codename' value='$row[codename]'><br/>";
echo "Location: <input type='text' name='location' value='$row[location]'><br/>";
echo "Rank: <input type='text' name='rank' value='$row[rank]'><br/>";
}


<br>
<input type="submit" value="Edit Record">
</center>
</form>
?>

错误在第 7 行,即 echo <<<_END; .我已经试过了echo<<END;并检查空格作为其他用户对具有相同错误的其他线程的评论。修复此错误的可能解决方案是什么?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com