yakult Posted May 24, 2012 Share Posted May 24, 2012 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"; }}?> 1 Link to comment Share on other sites More sharing options...
Don E Posted May 24, 2012 Share Posted May 24, 2012 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> 1 Link to comment Share on other sites More sharing options...
yakult Posted May 24, 2012 Author Share Posted May 24, 2012 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 More sharing options...
yakult Posted May 25, 2012 Author Share Posted May 25, 2012 GETTING STRING CHANGE THE SESSION WITH SESSION_START? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now