8
How to join data from another table.
On the bottom bench I have 3 tables:
dados:    id, nome, end, tel... etc.... 
cidades:  id, nome_cidade
status:   id, nome_status
$sql = "SELECT * FROM dados ";
$resultado = mysql_query($sql) or die ("Erro na consulta");
while ($linha = mysql_fetch_assoc($resultado)) {
$nome = $linha["nome"];      //aqui gravo o Nome Fulano
$cidade = $linha["cidade"];  //aqui gravo o id da Cidade
$status = $linha["status"];  //aqui gravo o id do status
}
Then he returns to me:
Nome: Paulo  na cidade: 1  e status: 2
Nome: Rafael na cidade: 1  e status: 2
How to make me return like this.??
Nome: Paulo  Cidade: Rio de janeiro Status: Ativo
Nome: rafael Cidade: São Paulo Status: inativo
Could put the complete structure of the table
dados– rray