header("Location: index.php?cmd=11&err=1");
exit;
}//end of if
}
?>
The file works on self, 'index.php?cmd=10' is the page which loads the form. However it works as in the fact the file path gets inserted, but then no image gets on the server, and I've double checked that it is allowed to upload... Now I never was any good at uploading pictures at uni though php, but I got there in the end, however... we had to save it into the database and I need this to go into a folder on a server.
Basically I'm not sure how to go about getting the code in the above file working in the same way the files in the .zip from the image thread work.
Any help I'd really appriciate!
Aravona
L.U.N.E for anyone and everyone who has an interest in literature
In the form that uploads the file, did you set the <form> tag to have the attribute enctype="multipart/form-data"?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Yes the form has that. Its just too long for this forums to accept in a post, but yet it is set up correctly, the problem does seem to be with the code.
Everything inserts to the sql, the picture just doesn't make it to the server.
L.U.N.E for anyone and everyone who has an interest in literature
Bookmarks