<?php
mysql_connect("localhost", "root", "admin") or die(mysql_error()) ;
mysql_select_db("regiss") or die(mysql_error()) ;
//Retrieves data from MySQL
$data = mysql_query("SELECT * FROM upfileap") or die(mysql_error());
//Puts it into an array
while($info = mysql_fetch_array( $data ))
{
//Outputs the image and other data
echo "<img src=http://www.yoursite.com/images/".$info['photo'] ."> <br>";
echo "<b>Name:</b> ".$info['name'] . "<br> ";
}
?>