derrtyones Posted September 14, 2008 Share Posted September 14, 2008 I got a tablename called portfolio. It contains some general information of users like id, loginname, password, firstname, lastname, age, location. I need a PHP script that reads and displays the information of the user that's logged in. So I think the easiest way out would be something like selecting everything where the loginname is the same as the sessionname. How do I do this? Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 14, 2008 Share Posted September 14, 2008 How do I do this? That's pretty general question. Do you have any PHP code already? Do you need help with creating SQL query? Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted September 15, 2008 Share Posted September 15, 2008 Yeah just think about it. Write down some logical steps that you should take. First you would need the person to login and set the session of their name (which it sounds like you've done). Second you need to query the database and retrieve this information using a function such as mysql_fetch_assoc(). Third you would just need to display the information to the user. Really you just need to think about things logically. If you have trouble then write down the steps. If you need more help, Google is a very good friend to have. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.