RE: [PHP-DB] How to capture from session and match database

2007-09-23 Thread Naintara
e code you could use Do read my comments after // (slashes) Naintara -Original Message- From: Chris Carter [mailto:[EMAIL PROTECTED] Sent: Sunday, September 23, 2007 9:59 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] How to capture from session and match database Hi Naintara,

Re: [PHP-DB] How to capture from session and match database

2007-09-23 Thread Chris Carter
Hi Naintara, thanks for your code could you please advice why is the code giving this error. "Parse error: syntax error, unexpected T_ISSET in /path/submit-store-details.php on line 4" This is coming when I am trying to use your code like this: and then retrieving it in SQL query: $query="S

RE: [PHP-DB] How to capture from session and match database

2007-09-19 Thread Naintara
y variables, and then test the sql. -Original Message- From: Chris Carter [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 8:34 AM To: php-db@lists.php.net Subject: [PHP-DB] How to capture from session and match database Hi, I have this session code on each page and this is

Re: [PHP-DB] How to capture from session and match database

2007-09-19 Thread Goltsios Theodore
You can use cookies to keep your info so that you don't pass them from page to page. A way to do this is: $email = '[EMAIL PROTECTED]'; session_start(); setcookie('e-mail',$email); And then retrieve the cookie information using the $_COOKIE array: $query="SELECT * FROM table WHERE email = '".

[PHP-DB] How to capture from session and match database

2007-09-18 Thread Chris Carter
Hi, I have this session code on each page and this is working fine for authentication: Now I wish to 1)capture the value (userName) from session on one of my pages and 2)match it with the database and 3)display the value in the textfields This is the code I am using to do this please: in

[PHP-DB] How to capture from session and match database

2007-09-18 Thread Chris Carter
Hi, I have this session code on each page and this is working fine for authentication: Now I wish to 1)capture the value (userName) from session on one of my pages and 2)match it with the database and 3)display the value in the textfields This is the code I am using to do this please: in