Edit a Photo Caption

I told you not to enter a zero for the photo display order,but you did it anyway!

"; include_once 'incs/footer.php'; exit; } if ( isset($_POST['main']) ) { $main = "Y"; } else { $main = "N"; } // Update display order: $updatecaption = mysqli_query($dbcrent, " UPDATE photos SET caption = '$caption', main = '$main', display_order = '$display_order' WHERE photo_id = '$photo_id' ") or trigger_error("Bad update: " . mysqli_error($dbcrent)); if ($updatecaption) { echo "

The information has been updated.

"; echo "