Ive done my user managment system for my site and now i want to bring back some information from the database to the webpage. So far i have only managed to get one to work which is:
Obviously that displayed the current username.
Now i want to do the same method but with the ID of the user. In the MySQL table its under "id" so i tried:
but no luck, i have a feeling it has something to do with this piece of code in the script
Code: Select all
<? if (isset($_SESSION['user_id'])) {?>
Im still learning stuff like this from tutorials which is why im really sketchy on the code. Any assistance not only helps me but also allows me to understand php more.