-1
Guys, here’s the deal: Made the user registration on the site, it saves in the database (obvious).
This is the code of the connection to the database (this is correct?):
<?php
echo $sql= "select * from users order by email";
$rs =mysql_query($sql,$connection) or die ("Consulta nao realizada");
?>
The question is how to make the bank take only the email of the active user and not show the email of all users of the site.
I want to show the email of the active user with a "echo $email" and do not know where and how to appear.
Thank you!
That code is obsolete only.
– rray
What do you mean? It’s that I don’t know how to "capture" only the active user email and show you the page.
– eduardo
When you log in, I imagine you should save this information in the session, right?
– rray
yes, it keeps in users
– eduardo