using $_SESSION to pass table_id
Posted: Fri Nov 26, 2004 12:22 am
Hi All,
I'm getting stuck when using the $_SESSION variables. I want to set a session variable based on a unique column in a MySQL table.
Can I do this anythinglike this:
If this would work, where abouts in the code would I put it.
Thanks
I'm getting stuck when using the $_SESSION variables. I want to set a session variable based on a unique column in a MySQL table.
Can I do this anythinglike this:
Code: Select all
$result=mysql_query("select loan_id from secure_loan
where username = '".$_POST['username']." ' )")
$_SESSION['uniqueid'] == $result;If this would work, where abouts in the code would I put it.
Thanks