I am using a script to upload a picture to a directory, and then alter the db with the graphic file name, to be reviewed later..
Before I start the process, the db, against the login name is a .jpeg and the following script displayes the picture.
echo "<align='left'><img src='$Pix' border='1' height='200' width='200'>";
(No problems)
I then upload the picture using,
$abc =$_FILES['pix']['name'];
$destination = '/eddeee/ '.$_FILES['pix']['name'];
$temp_file = $_FILES['pix']['tmp_name'];
move_uploaded_file($temp_file,$destination);
echo "<p><b>The file has successfully uploaded:</b>
{$_FILES['pix']['name']}
({$_FILES['pix']['size']})</p>";
}
$query = "UPDATE Member SET Pix='$abc'
WHERE
loginName='$loginName'";
$result = mysql_query($query) or die ("it didn't work");
again this works, the file uploads and I can see it in the eddeee db against the login name.
HOWEVER. when I go back to display the picture section I get nothing. (Just an empty box with a red cross in it). If I check the Properties I see the following
Protocal HyperText Transfer Protocol
Type Not Available
Address http://www.(correct)/pic.jpg
Size Not Available
Created NotAvailable
I also checked out the
$FILES['pix']['type']; = image/pjpeg
$FILES['pix']['size']; = 160748
When I check in the file manager The picture that CAN see has the following
File Type: JPEG image data, JFIF standard 1.01, resolution (DPI), 300 x 300
The picture I up load has the following
File Type: Al with crayon mat.jpg: JPEG image data, EXIF standard 0.73, 10752 x 2048
Can anyone help ?