It looks like there are a few issues with the code you provided that could be causing your images not to be saved to the database. Here are a few suggestions to help you troubleshoot the problem:
The line $target = 'images'; is creating a variable called $target but it is not being used in any other lines of code. It is likely that you meant to use $target as the destination for the copy function, instead of $destination.
You are not providing a path for the destination of the image, you should replace $destination by the path you want to save the image.
In the line copy($tmp, $destination);, the copy function is being used to copy the temporary file to the destination, but it is not providing a new file name for the image. This means that if an image with the same name already exists in the destination, it will be overwritten. You should give a new name to the [url=https://apkinu.com/gbwhatsapp-download/]image[/url] before saving it in the destination.
The line echo $_POST['name'].' Temporary: '.$tmp; is only providing you with the name of the file and its temporary path. This line is useful for debugging but it should be removed once you are sure that the image is being uploaded correctly.
Finally, you are not inserting the image into the database. You should use a query like INSERT INTO images (name, path) VALUES ('$name', '$target') to insert the image data into the database.