Hello again. After hours of wrangling with the code, I need a wee bit of advice on this. I have a script which allows users to upload a profile description and a picture of thier choosing. The upload and update of the database works. However, what I need to do, is figure out how to display the picture as the picture location is stored in a variable in the database. I see the location spelled out when I peek at it, but the picture displays as a broken link/missing picture. Here is the code snippet I am using:
$ProfileName = $_GET['profile'];
$query = "SELECT UserID, UserName, password, Email, datejoin, ULevel, random, verified, profile, description, picture FROM users";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
if ($row['UserName'] == $_GET['profile'])
{
$Desribe = $row['description'];
$pict = $row['picture'];
echo '<table border="2" style="border: 2 solid #800000; padding: 1" width="70%" bgcolor="#CCCCCC">';
echo ' <tr>';
echo ' <td width="100%"><font face="Arial" color="#000000">UserName : <font face="Arial" color="#FF0000">' . $ProfileName . ' ' . $pict . '</td>';
echo ' </tr>';
echo ' <tr>';
echo ' <td width="100%"><font face="Arial" color="#000000">UserProfile : <font face="Arial" color="#FF0000">' . $row['description'] . '</td>';
echo ' </tr>';
echo '<img border="0" src=' . $pict . '>';
echo '<img src="http://www.iceregent.com/profiles/'. $pict . '" width="120" height="94" border="0" alt="">';
echo $pict;
echo '<p><span style="position: absolute; left: 1; top: 0"><img border="0" src="' . $pict .'" width="95%" height="90"></span></p>';
}
}
?>
I have setup 3 different attempts to display the picture in the last of the code. All three attempts make the box with the red 'X' in them. What am I doing wrong? The file is successfully uploaded into the correct directory called 'profiles' .
Below is the output I get, of course, you cannot see the red 'x' boxes..:
UserName : popeye popeye.jpg
UserProfile : this is a test of the profile update
popeye.jpg
Can anyone see what I am doing wrong?
thank you
Ice