gpt4 book ai didi

php - 查询数据库到表时语法错误 ';'

转载 作者:太空宇宙 更新时间:2023-11-03 11:25:47 25 4
gpt4 key购买 nike

<分区>

我想知道这段代码有什么问题。我只是想将数据库查询到表中。谢谢大家

<?php
while ($row = $query->fetch(PDO::FETCH_ASSOC))
printf(
"<tr>";
"<th scope='row'>" . htmlentities($row['insrt_fullname']) . "</th>";
"<td>" . htmlentities($row['insrt_username']) . "</td>";
"<td>" . htmlentities($row['insrt_password']) . "</td>";
"<td>" . htmlentities($row['insrt_email']) . "</td>";
"<td>" . htmlentities($row['insrt_designation']) . "</td>";
"<td>";
'<a href=/tarp_admin/connection/delete_user.php?id=' . $user_id . '
class=\'badge badge-danger\' onclick="myFunction">Delete</a> <a
href=/tarp_admin/connection/delete_user.php?id=' . $user_id . '
class=\'badge badge-warning\'>Edit</a>';
"</td>";
"</tr>";
);
?>

解析错误:语法错误,意外的';'在 C:\xammp\htdocs\tarp_admin\dashboard.php 第 344 行

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