Hi everyone.
I have a problem when loading page whit php.
it is supposed that it has to load when the query throws a result, but it does not load only it shows me the code in the tools for chrome developers and I do not know what it could be.
I leave the code and images
<?php
session_start();
include ("conex.php");
$usuario = $pass = "";
$html = 0;
if ($_SERVER["REQUEST_METHOD"] == "POST"){
$usuario = mysqli_real_escape_string($con,$_POST['user']);
$pass = mysqli_real_escape_string($con,$_POST['pwd']);
$sql = "SELECT id_congregacion, nombre_hermano, apellido_hermano FROM hermanos WHERE user = '$usuario' AND pass = '$pass'";
$result = mysqli_query($con, $sql);
$row = mysqli_fetch_array($result, MYSQLI_ASSOC);
if (mysqli_num_rows($result) >= 1){
$_SESSION['login_user'] = $row['nombre_hermano']." ".$row['apellido_hermano'];
$_SESSION['congregacion'] = $row['id_congregacion'];
header("Location: ../html/inicio.html");
mysqli_free_result($result);
}else{
$html = 1;
}
}
echo $html;
mysqli_close($con);
?>
Can you try hitting Fix my website button in cPanel>Settings>General