close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DataAssist Insert and update issues with login Page

Thread began 5/03/2013 4:39 am by Mysite07430650 | Last modified 5/06/2013 12:44 pm by Mysite07430650 | 449 views | 2 replies |

Mysite07430650

DataAssist Insert and update issues with login Page

Hi Jason,

I am having a perculiar problem with DataAssist Insert server bahviour. It appeared to be working correctly and well in one instance but not so well in this particular instance contained in the login page.

I am trying to accomplish three things that I have done before in the not so distant past and they are as follows: (1) Login Count, (2) Login Date and (3) Log table (logged_users) capturing clients login record populated by the insert single record behavior.

I created two columns in the main security assist users table for LoginCount and LoginDate, then created a recordset (rsLoggedin) with filtered record using the ScurityAssist_UserID as the session variable.

I then added the update single record bahvior as follow:

DataAssist: Update Single Record

General Tab

Trigger: any form post
Database connection set to Registered Users Table.
Key Column: UserID
Value: <?php echo $_SESSION['SecurityAssist_UserID']; ?>

Bindings:

Column: LoginCount
Type: Numeric
Value: <?php echo $row_rsLoggedin['LoginCount'] +1; ?>

Column: LoginDate
Type: Date
Value: <?php echo (date("Y-m-d h:n:s")); ?>

I also did a single update for UserIP address to capture that information too.

The update LoginCount, LoginDate and UserIP are not updating.

The insert single record behaviour as well is not capturing and inserting data into the logged_users table.

I have I think ensured the codes are in the right order but I am not getting any result.

Please have a look at the login page and tell me what I am doing wrong.

Thanks.

Attached Files
login-page.zip
Sign in to reply to this post

Jason ByrnesWebAssist

i dont see an obvious issue in the code. I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Mysite07430650

Hil Jason,

The insert and update server behaviour is working as it should now. I removed and re-entered the updates server behaviour first tested it and it was fine, then I proceeded with the insert server behaviour last and that too was tested and proved to be working fine. So overall, the issue is sorted.

Anyway thanks.

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...