I'm trying to display an image in a table and I don't have the syntax correct in the <img> tag:
The output URL comes out as: http://localhost:8888/BM/loginsession/s ... 201%20?%3E
What the hell am I doing wrong? My syntax sucks.
Thanks for your help.
Code:
while($row = mysql_fetch_array($querymodelinfo))
{
$UserID = $row['UserID'];
echo "<br>
<table>
<tr>
<td>
<b>Photo1:</b><img src='show.php?UserID=<?php echo $UserID ?>'>
</td>
</tr>
</table>
<br>
<a href='editprofile.php'>Edit your profile</a>";
}
The output URL comes out as: http://localhost:8888/BM/loginsession/s ... 201%20?%3E
What the hell am I doing wrong? My syntax sucks.
Thanks for your help.