In this program, a user is uploading a photo into MYSQL. Photoid is auto-incremented. Once the user submits the form, the code below takes action. I want the user to be redirected to the page the photo was just uploaded to. How can I redirect him to photopage.php?photoid=???
.
$addaphoto_query = "INSERT INTO `photosite`.`photos` (id, photoid, title, description) VALUES ('$id', '', '$title', '$description')";
if ($run_addaphoto = mysqli_query($connect, $addaphoto_query){
header('Location: photopage.php?photoid=???');
}