On my site, I allow users to either select an image or to type in the path of their image which is hosted elsewhere. The file name or file path gets stored in my database. Now I want to display their image on a page. How do I do this? This is the code I have for it...
When I try this, it only displays the file name or path of the image, not the actual image. How do I fix this?
PHP:
$sql = "SELECT * FROM user";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)) {
echo "<tr>";
echo "<td>".$row['user_image']."</td>";
echo "</tr>";
When I try this, it only displays the file name or path of the image, not the actual image. How do I fix this?






