Jump to content

SELECT MYSQL


yakult

Recommended Posts

TO GET A VARIABLE FROM SESSION, SHOW THE DATABASE WITH A SEQUENCE BASED ON MEMBER. while ($dados=mysql_fetch_array($resultado)) { $id = $dados["id"]; $corretor = $dados["nome_corretor"]; $tipo = $dados["tipo"]; $valor = $dados["valor"]; } if(!($pass)){ echo "<div id=\"login\">"; echo "Usuário sem registro!"; echo "</div>"; else { session_start(); $_SESSION['pass'] = $pass; echo "CADASTRAR IMÓVEIS"; }}?>

  • Like 1
Link to comment
Share on other sites

Not sure what you're asking, but just to note... it is recommended for session_start() to be declared at the top of your file(s)/document(s) after the php opening tag <?php and before any HTML. <html>

  • Like 1
Link to comment
Share on other sites

while ($dados=mysql_fetch_array($resultado)) { $id = $dados['id']; $corretor = $dados['nome_corretor']; $tipo = $dados['tipo']; $valor = $dados['valor']; if(!($pass)){ echo "<div id=\"login\">"; echo "Usuário sem registro!"; echo "</div>"; else { session_start(); $_SESSION['login'] = $corretor; echo "CADASTRAR IMÓVEIS"; USE WITH FORM AND SESSION, PLACE ONE STRING WITH SOME CASE!!!

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...