update based on session var?
| From: | Jas | Date: | Mon, 05 Aug 2002 17:41:08 +0000 |
| Subject: | update based on session var? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-20996@lists.php.net to get a copy of this message | ||
I would like to know the correct syntax to update a field based on the
contents of another field... for instance:
session_register['var'];
if http_session_var['var'] = = $field from db {
update record;
} else {
insert new record; }
Any help on this would be greatly appreciated!
Jas