class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
If you read $_FILES['image']['name'], you have the complete filename, including the extension. You shouldn't use $_FILES anyway.
Please read the documentation. You can for instance use file_src_name to get the originale filename without the extension. Then your code can for instance be:
If you read $_FILES['image']['name'], you have the complete filename, including the extension. You shouldn't use $_FILES anyway.
Please read the documentation. You can for instance use file_src_name to get the originale filename without the extension. Then your code can for instance be:
As for the database, as I said in my previous answer, it is outside of the scope of this forum.