我有以下一段代码。我想要的只是在 td 内回显图像(它说在此处插入图像)。知道怎么做吗?
<?php
$personal_1 = mysql_query("SELECT `user_id`, `name`, `surname`, `profile` FROM `users` WHERE `user_id`='{$row['user']}' ");
while ($run_personal_1= mysql_fetch_assoc($personal_1)) {
$comment_user_id = $run_personal_1['user_id'];
$comment_user_name = $run_personal_1['name'];
$comment_user_surname = $run_personal_1['surname'];
$comment_user_profile = $run_personal_1['profile'];
$profile_data = user_data($comment_user_id,'name','surname','email','profile');
if(!($profile_data['profile']==NULL)){
echo '<img src="', $profile_data['profile'], '" alt="' , ' Profile Image not yet ready! ">';
}else
echo'<img src="img/photo.jpg"/>';
}
$comments .= "<table border='1'> <td> insert image here </td> <td> $comment_user_surname $comment_user_name </td></table>";
?>
我想将图像放置在“在此处插入图像”的位置。知道怎么做吗?