Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

USING SESSION

New Here ,
Aug 28, 2006 Aug 28, 2006
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.
TOPICS
Server side applications
379
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 28, 2006 Aug 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...
Translate
LEGEND ,
Aug 28, 2006 Aug 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 29, 2006 Aug 29, 2006
Thanks David, its working. Could u please help to create a shopping cart in PHP integrated with Dreamweaver.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 29, 2006 Aug 29, 2006
LATEST
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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines