I've already created a table "users" and another called "facts", and a login system for my website. On one page I would like to display customized data depending upon whichever member/user is logged in. Depending upon which member is logged in, there are certain values (like 1's and 0's) in their respective rows for columns called (e.g.) school_a, school_b, etc. , that I would like to have correspond to different rows in my "facts" tables that would call those rows based upon the 1's and 0's in the user's rows.
How do you this? Would I need to have a session thingy going for my user, and somehow use that to then do a MySQL query on that user's data, then using the results, retrieve and print those rows under my "facts" table? Maybe some help with coding?