gpt4 book ai didi

php - 无法显示图像

转载 作者:行者123 更新时间:2023-11-30 00:32:05 24 4
gpt4 key购买 nike

不知道为什么不显示头像100x100。出了点问题,我不知道如何修复。

$result = mysqli_query($con,"SELECT * FROM `users` WHERE `verified` = 1 and         lastcheck=0 order by `authoredPostCount` DESC");
echo "<table border='1'> <tr>
<th>Picture</th>
<th>Verified</th>
<th>Videos</th></tr>";

while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row "<img src="['avatar']."></td>";
echo "<td>" . $row['userId'] . "</td>";
echo "<td>" . $row['authoredPostCount'] . "</td>";
echo "</tr>";
}
echo "</table>";
if (!$cuserId) {
printf("Error: %s\n", mysqli_error($con));
exit();
}
mysqli_close($con);
?>

最佳答案

替换

echo "<td>" . $row "<img src="['avatar']."></td>";

echo "<td><img src=". $row['avatar']."></td>";

关于php - 无法显示图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22430305/

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