Skip to main content
Known Participant
August 28, 2006
解決済み

USING SESSION

  • August 28, 2006
  • 返信数 3.
  • 380 ビュー
Altough im workin on PHP platform i am not PHP programmer. Could u please help me integrating the session stuff through Dreamweaver. Actually my website requires the following :

A registered user logins and he is directed to his account page, where he can edit his billing address, shiiping address, email, password,etc....
When he logins he has to see his account information rather than others so my problem his when he is inserting his billing address for the first time only the billing information is getting inserted not the user_id.
Tables used for storing billing address is ORDERS and for storing user email and passsword its USERS.
Table ORDERS contains a field named user_id and table USERS also contain a field name called user_id. Actuall user_id is present in USERS table and i need the corresponding user_id to get inserted into ORDERS table. Please help me with this problem.
このトピックへの返信は締め切られました。
解決に役立った回答 Newsgroup_User
prashi123 wrote:
> A registered user logins and he is directed to his account page, where he can
> edit his billing address, shiiping address, email, password,etc....

The Log In User server behavior creates a session variable called
$_SERVER['MM_Username']. Use this variable to control everything seen by
the user after logging in. You can get the user's ID by creating a
recordset in the Simple Recordset dialog box. Select the ID and use
Session Variable and MM_Username as the filter.

Once you have the user's ID, save that as a session variable to control
the rest of the operations.

$_SESSION['user_id'] = $row_recordsetName['user_id'];

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/

返信数 3

Inspiring
August 29, 2006
prashi123 wrote:
> Thanks David, its working. Could u please help to create a shopping cart in PHP integrated with Dreamweaver.

No, sorry. I'm busy writing my next book.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
prashi123作成者
Known Participant
August 29, 2006
Thanks David, its working. Could u please help to create a shopping cart in PHP integrated with Dreamweaver.
Inspiring
August 28, 2006
prashi123 wrote:
> A registered user logins and he is directed to his account page, where he can
> edit his billing address, shiiping address, email, password,etc....

The Log In User server behavior creates a session variable called
$_SERVER['MM_Username']. Use this variable to control everything seen by
the user after logging in. You can get the user's ID by creating a
recordset in the Simple Recordset dialog box. Select the ID and use
Session Variable and MM_Username as the filter.

Once you have the user's ID, save that as a session variable to control
the rest of the operations.

$_SESSION['user_id'] = $row_recordsetName['user_id'];

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/