I am having a problem with overwriting the images, I am trying to keep the image named the same, but it won't overwrite the exiting image.
Here is the code:
$file_dir = "/www/htdocs/images/cars";
$file_url = "images/cars";
$query13 = "UPDATE inventory SET IMAGE_LOCATION = '$stock$name.jpg' WHERE VIN='$vin'";
$result13 = mysql_query($query13);
copy ( "$IMAGE_LOCATION", "../../images/cars/$stock$name.jpg" ) or die ("Couldn't copy");
Thanks for any help,