close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Security Issue - Duplicate Recordset Results

Thread began 3/22/2012 9:01 pm by ovknox388992 | Last modified 3/23/2012 10:13 am by Jason Byrnes | 684 views | 1 replies |

ovknox388992

Security Issue - Duplicate Recordset Results

I am trying to resolve a potential security issue, but when I do, it creates another problem with duplicate recordset results. I thought I had fixed the security problem with a recordset that joins two tables. The security seems to be working ok, but the recordset gives me duplicate results on the "master" page of my master/detail page set.

I have created the following two tables:
1. publishers_us (this table is populated by registration page created with Security Assist)
2. data_us (this table is populated with an insert_data form created with Data Assist)

Each table has a "usEmail" field and a "usPassword" field. I need the values in these fields to match in both tables to create the security I need. Otherwise, it would be relatively easy for a logged in user to submit a bogus article with another uses name attached to it.

I am thinking that my problem lies with my JOIN statement, but I don't know. Any help will be appreciated.

The following recordset is giving me duplicate results.

SELECT publishers_us.usEmail, publishers_us.usPassword, publishers_us.usFirstName, publishers_us.usLastName, data_us.usDocID, data_us.usIssue, data_us.usEntryType, data_us.usEntryTitle, data_us.usIssueDoc
FROM publishers_us INNER JOIN data_us ON publishers_us.usEmail = data_us.usEmail
AND publishers_us.usPassword = data_us.usPassword
WHERE data_us.usIssue = 'Knockout Roses'


Can you please tell me where I am going wrong here? Am I going the wrong direction here?

Sign in to reply to this post

Jason ByrnesWebAssist

add a group by clause tho the recordset after the where clause:

GROUP BY publishers_us.usEmail

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