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

Record display to match log in user

New Here ,
Mar 07, 2009 Mar 07, 2009
I'm trying to create a log in area with user information. I have used the update record and it does display a record but only the first record that I input no matter what username I log in with. I want to have the record display match the logged in users information.
TOPICS
Server side applications
462
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
Advisor ,
Mar 07, 2009 Mar 07, 2009
Heya Joe,

Adjust your query to UPDATE table FROM table WHERE id = session login id

Hope that helps!
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 ,
Mar 07, 2009 Mar 07, 2009
Ok but DreamWeaver doesn't seem to let me just type that in. I have to SELECT table. I tried a few combinations but I don't think I understand how to modify the query other than through editing the recordset.
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
Advisor ,
Mar 07, 2009 Mar 07, 2009
LATEST
Heya Joe,

Try this:

1. Restrict access to page for logged in users.

2. Create form you'll use for Update Record Server Behavior.

3. Add a hidden field in the form for primary_key name and id = primary_key

4. Add the value for primary_key as the session login_id from the Bindings Tab in Dreamweaver.

5. Add Update Record Server Behavior. Select primary_key form field for integer primary key in Update Record SB and add other form fields corresponding to update record accordingly.

6. save, put, login, visit, update logged in users record.

Hope that helps!
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