Nevermind, I just went ahead and set the preset values to the corresponding id via if statements.
Thanks.
Hello all,
I have two tables (table 1, table 2) located in one db and I need them to relate. I need the id of table 1, but to get the id I need it to correspond to the session username, which is the same exact value located in the column name of table 1.
In other words,
$user=session_username equals a value located in table 1. Another table is named this value. The id of the value located in table 1 (matching the session_username) I need.
That doesn't seem to clear. Okay, I have updateinfo.php?id=%s and $myrow["id"] coming from table 1. However, the id is supposed to equal the value corresponding to the session username, which matches name in table 1. So I try to updateinfo and what I get is id=1, rather than say id=5.
I hope that makes sense. If not, I'll try explaining it all again. Thank you for your help.