PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a login script in which it works fine. on my homepage i want it to display the first name of the user. I have it where i can show the username but nothing else.
I have tried different sessions and mysql functions nothing works. Any Suggestions.
$sql="SELECT FirstName FROM $tbl_name WHERE username='$myusername' or email='$myusername' and password='$mypassword'";
I would specify this to grab the name and any other data you need. Then set your session with that value. Cause currently you are only setting the user name not the first name.