Forum Moderators: coopster
I have initiated a session variable at log-on that holds the user's user name which is his/hers email address. I want to use this user name from the session variable to insert data to the correct user in the db. How do I write the sql query using a WHERE statement for the session variable?
i.e. INSERT into client(name,surname) values ('$name','$surname') WHERE email = (this is where I'm lost!)