Jump to content

|FEFT JOIN


yakult

Recommended Posts

PEGAR REGISTROS PARA COLOCAR VÁRIAS SESÕES!!! UMA DAS TABELAS PRCISA DE MAIS INFO QUE A SEGUNDA, BAIXEI A CONSULTA PARA UTILIZAR OS CAMPOS QUE TÊM O NOME DO CORRTOR!!! $sql = ("select b.nome_corretor as nome from corretores as a LEFT JOIN imoveis as b ON b.nome = a.nome"); $resultado = mysql_query($sql); while ($dados=mysql_fetch_array($resultado)) { $logo = $dados['logo']; $pass = $dados['senha']; O RESULTADO DO FORMUlÁRIO ABAIXO:<?include ("conn.php");session_start()if(IsSet($_SESSION['pass'])) { echo "<div id=\"login\">"; echo "LOGADO"; echo "</div>";else { echo "<div id=\"mensagens\">"; echo "<form action=\"login_do.php\" method=\"POST\">"; echo "<form id=\"login\" value=\"LOGIN\" method=\"POST\">"; echo "<input type=\"text\" name=\"login\" value=\"ADMIN\">"; echo "<input type=\"submit\">"; echo "</form>";}?>

Link to comment
Share on other sites

can you use english please?

Link to comment
Share on other sites

Guest So Called

I can't read it either. Maybe we can guess from the code.

echo "<div id=\"mensagens\">";echo "<form action=\"login_do.php\" method=\"POST\">";echo "<form id=\"login\" value=\"LOGIN\" method=\"POST\">";echo "<input type=\"text\" name=\"login\" value=\"ADMIN\">";echo "<input type=\"submit\">";echo "</form>";

Two <FORM> tags, only one </FORM> tag. Bad!!! Good:

<form>.[i]input elements[/i].</form>

One <FORM> tag and only one </FORM> tag. Good!!!

Link to comment
Share on other sites

echo "<div id=\"login\">"; echo "<a href=\"#\" onclick=\"abrirPag('login.php');\">Login</a>"; echo "<a href=\"#\" onclick=\"abrirPag('imoveis.php');\">Imóveis</a>"; echo "<a href=\"#\" onclick=\"abrirPag('exibe_corretores.php');\">Corretores</a>"; echo "<a href=\"#\" onclick=\"abrirPag('classificados.php');\">Classificados</a>"; echo "<a href=\"#\" onclick=\"abrirPag('serviços.php');\">Serviços</a>"; echo "<a href=\"#\" onclick=\"abrirPag('conteudo.php');\">Busca</a>"; echo "</div>"; MOSTRA NA HORA QU PRECISAR DE USUÁRIO, OCULTA SE CARREGA SEM USER!!!

post-96457-0-93783100-1337820499_thumb.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...