Hello, I'm re-coding a script I made to upload movies, now instead of showing them as
"view.php?name=Movie_name_here"
I want them to look like
"view.php?id=1"
"view.php?id=2"
"view.php?id=3", etc.
How can I make that each upload gets an unique ID, ordered according to the number of files existing, like if there are 17 movies, the new one gets number "18" as unique ID.
Lastly, how could I prevent the script from replacing existing IDs?
EDIT: I'm using XML files to store movies' data, so I want them to look like "1.xml", "2.xml", "3.xml", etc., is this possible?
Thanks in advance.