PHP Question! Can you bring up DATA from a seperate mySQL table when you are...

Phil M

New member
...logging in with another table? I have one MySQL database with two mySQL tables. 1) A table with a User Profile 2) a table with clients submissions which includes "username" field that will be the same as the username in table1. This way when a User logs in, they can automatically view a query that will bring up clients assigned to him. I have the Logging in and the interface down pat, but I am not sure how to write a simple code that will take the Users "username" and extract data from another table with the clients submission information.
Yes I have that code from the first answer, however, I am logging in using a session from a different table, and after I log in, it stays on the same page, asking to click a button enter Main page (interface). Now when I go to the Main page, I would like the username be carried over and then a new query to a different table using the same username to bring up the information.
 
Back
Top