close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

how to add userID to table...

Thread began 2/22/2011 11:06 am by capirucho | Last modified 2/22/2011 2:29 pm by Jason Byrnes | 701 views | 1 replies |

capirucho

how to add userID to table...

I'm user the PHP User Registration package to register and login users.

i have the following table:

1) User_tbl
2) Widgets_tbl

My problem is how do I capture the userID that is in the User_tbl and insert into the Widgets_tbl since I need to keep track of what "user" entered a record into the Widgets_tbl?

I'm assuming the userID is already known via the back-end code once a user logs in (since I'm also restricting access to this page using the SecurityAssist extension). I just don't know how to capture userID and insert into Widgets_tbl once the user "submits" the form on my Widgets.php page.

Any help greatly appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

when the user logs in, the id is stored in session variable named:
UserID


go to the bindings panel, click the plus button, select session variable and name it UserID

in the insert record behavior, bind the user id column of the widgets table to the UserID session.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...