Upload a Photo
I need this part of my script to send a photo to a folder and give it the name of the next automated number in the database. It won't send and I don't know how to give it the next automated number. I have the database and the rest of the script ready to go.
__________________________________________________ ___________________
{
$newname ="image.jpg";
$place_file = move_uploaded_file( $_FILES['fileField']['tmp_name'], "images/users/".$newname);
$success_msg = '<font color="#009900">Your image has been updated, it may take a few minutes for the changes to show... please be patient.</font>';
}
|