I am using this to upload pictures, how do I rename the pictures when uploading.
$file_dir = "/www/htdocs/images/";
$file_url = "http://www.mysite.com/images";
$query13 = "UPDATE inventory SET IMAGE_LOCATION = '$IMAGE_LOCATION_name' WHERE VIN='$vin'";
$result13 = mysql_query($query13);
copy ( "$IMAGE_LOCATION", "../../images/$IMAGE_LOCATION_name" ) or die ("Couldn't copy");
I want to rename the file to the VIN, there are 7 per vehicle so it would be 01, 02, etc......
Thanks for any help.