close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

One to many query

Thread began 10/31/2010 6:20 am by twitchr377598 | Last modified 11/03/2010 6:52 am by twitchr377598 | 2628 views | 11 replies

twitchr377598

The reason I use userID to check or uncheck is because I only want the ones that userID 116 has access to to be checked when rendered. It works if I simply let it show the duplicate venues with a simple INNER JOIN query because it's pulling all the venues that 113 owns and checking the ones that 116 has access to. The problem is the duplicates showing.

For instance, instead of seeing a list of checkboxes with Club 1 and Club 3 checked:

[x] Club 1
[ ] Club 2
[x] Club 3

where userID 116 has access to club 1 and 3 I get:

[ ] Club 1
[ ] Club 1
[x] Club 1
[ ] Club 2
[ ] Club 2
[ ] Club 2
[ ] Club 3
[ ] Club 3
[x] Club 3

above is basically showing all the records (and users) that have access to clubs that are owned by 113 and checking the proper Clubs that userID has access to. My goal is the weed out the duplicates. I change the query to do that, but then it doesn't check them.

Maybe I just need to figure out a different way to structure my one to many relationship, but everything I've read on it seems to point to this way. I think the key is the proper query.

Sorry if I am confusing you Jason...haha

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