I'm doing a project, in most cases the consultations are they perform normally and correctly, but on 2 occasions (one of them is) he performs the query, he tries to print the query and nothing happens.
$mysqli = new mysqli("localhost","root","1234","basededatos");
$ID_PERSONA = $_SESSION['ID'];
$Comentario =
htmlspecialchars(mysqli_real_escape_string($mysqli,$_POST['Comentario']));
$ID_POST = htmlspecialchars(mysqli_real_escape_string($mysqli,$_GET['ID']));
$mysqli->query("INSERT INTO comentariosforo (ID_Persona, ID_Post,
Comentario) VALUES ('$ID_PERSONA', '$ID_POST', '$Comentario')");
header("Location:http://localhost/Foro/Post.php?ID=$ID_POST");
?>