Posts by Wili Macena • 29 points
1 post
-
2
votes2
answers7718
viewsQ: Warning: mysqli_num_rows() expects Parameter 1 to be mysqli_result, Boolean Given in
$sql = "SELECT `id`, `nome`, `nivel` FROM `usuarios` WHERE (`usuario` = '".$usuario ."') AND (`senha` = '". sha1($senha) ."') AND (`ativo` = 1) LIMIT 1"; $result = mysqli_query($conn, $sql); if…
phpasked Wili Macena 29