Hello, I do not know what parameters (I only know one of them) to use in mysql_fetch_array, please tell me what it is and how to get it.
include "conection.php";
session_start(0);
$db = mysqli_connect("localhost", "root", "");
$login = $_SESSION['login_usuario'];
$sql = mysqli_query($db, "SELECT * FROM usuarios WHERE login = '$login'");
while($linha = mysql_fetch_array($sql, $sql))
{
$nome = $linha['nome'];
$email = $linha['email'];
$idade = $linha['idade'];
$cidade = $linha['cidade'];
}
Thank you in advance.