Notice: Undefined index: pass on line 42 and line 41

0
<?php mysqli_select_db($conexion, $database_conexion);
    $query_DatosWeb = sprintf ("SELECT * FROM z_users WHERE user=%s AND password=%s",
         GetSQLValueString($_POST['user'], "text"),
         GetSQLValueString($_POST['pass'], "text"));
    $DatosWeb = mysqli_query($conexion, $query_DatosWeb) or die(mysqli_error());
    $row_DatosWeb = mysqli_fetch_assoc($DatosWeb);
    $totalRows_DatosWeb = mysqli_num_rows($DatosWeb);

        if($totalRows_DatosWeb==1){
        $_SESSION['iduser']=$row_DatosWeb['id'];
        $_SESSION['nombreuser']=$row_DatosWeb['user'];

}

    mysqli_free_result($DatosWeb);
    $dato= array($row_DatosWeb['url'], $row_DatosWeb['titulo'], $row_DatosWeb['admin']); ?>
    
asked by Johist Jaimes 11.10.2018 в 23:55
source

0 answers