The isset
accepts several parameters, like this:
if(isset($_POST['sd'], $_POST['video'])){
$sd = $_POST['sd'];
$vid = $_POST['video'];
$sql = "UPDATE 'player' SET 'sd' = '$sd', 'video' = '$vid' WHERE 'id' = 3";
$ssl = mysqli_query($conn, $sql);
$_SESSION['post'] = 'Configuração salva com sucesso!';
header("Location: edit.php");
exit();
}
Just to note, I recommend that you use mysqli_real_escape_string
to avoid SqlInjection, like this:
if(isset($_POST['sd'], $_POST['video'])){
$sd = mysqli_real_escape_string($_POST['sd']);
$vid = mysqli_real_escape_string($_POST['video']);
$sql = "UPDATE 'player' SET 'sd' = '$sd', 'video' = '$vid' WHERE 'id' = 3";