Hi, i need help please!
i have a page were users can upload images, the name and path to where the image is stored is stored in the database. I want the aministartor to be able to view all of the images. when i try this it returns the path on screen rather than the image. can someone melp tell me if i am complety wrong or what i am missing.
the code used to view them all is below:
<?php
$image_path = 'C:/wamp/www/Playhill/images/';
$sql="Select * From images";
$result = @mysql_query($sql);
$result = mysql_query("Select * From images");
print ' <table class="border"><th> Name <th> Photo </th>';
while ($row = mysql_fetch_array($result))
{
print
"<tr><td>".$row['name']."</td><td>". $image_path . $row['path'] ."</td></tr>";
}
print "</table>";
mysql_close($con);
?>