Hi I need to allow users to upload pictures to a mysql server. Currently I just have my users upload to a folder on my website but this does not allow me to organize there images by most recent?
Here is my php that allows them to upload to a folder on my website:
if (file_exists("upload/" . $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"upload/" . $_FILES["file"]["name"]);
echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
}
Thanks