I'm having problems running the update on two tables ... It worked until recently, but it updated the XAMMP that I use for testing and it just stopped! Is there a new way to run the update?
<?php
// RECEBENDO OS DADOS PREENCHIDOS DO FORMULÁRIO DE BUSCA!
$id = isset($_GET['id']) ? $_GET['id'] : '';
include("conecta.php");
//Query que realiza o update na tabela entsaida
$query = "UPDATE 'entsaida' SET 'saida'= NOW() WHERE id='$id'";
//Query que realiza update no status da senha selecionada
$query2 = "UPDATE 'senhas' SET 'status'='0' WHERE id = '$id'";
mysqli_query($conn,$query);
mysqli_query($conn,$query2);
//script para voltar a página após update nas tabelas
echo"<script type='text/javascript'>";
echo "alert('Saída cadastrada com sucesso!');";
echo "javascript:window.location='saida.php';";
echo "</script>";
?>
First of all, the connection is ok ... update in the first table is performed, the second is not. How do I proceed? Thank you.