close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Is this possible....

Thread begun 8/25/2010 6:02 am by iainmacdonald331081 | Last modified 8/27/2010 10:48 am by Jason Byrnes | 1887 views | 5 replies |

iainmacdonald331081

Is this possible....

Sorry about the vague title - wasn't sure how to summarise it down to a title.

I'm basically about to embark on a pretty big database driven project.

As such it will include a table of Products, and a table of Buyers.

The plan is to be able to match Products to Buyers bases on matching keywords. Which I pretty much think I'm OK with doing.

But the plan would be to enable Buyers to register, and be able to view the Products that they had any matches with.

Is this something Security Assist would help with?

If it was all public, it would just be a case of matching on the IDs, but in this case I guess each Buyer should only be able to see their matches.

Does that kinda make sense?

Sign in to reply to this post

Jason ByrnesWebAssist

How are you matching the buyer to the products?


What is the relationship and how is it created?

Sign in to reply to this post

iainmacdonald331081

Hi Jason - what I've done in the past is have a structure like this :

table_Products

ProductID
Product
ProductField1
ProductField2
etc

table_Buyers

BuyerID
Buyer
BuyerField1
BuyerField2
etc

tableKeywords

KeywordID
Keyword

tableProductKeywords

ProductID
KeywordID

tableBuyerKeywords
BuyerID
KeywordID

So, for example, when a new Product or Buyer is added, there is also a page listing a load of checkboxes with various Keywords, and the user just checks the ones they want to attach to the Product or Buyer.

This adds records to the ProductKeywords or BuyerKeywords table.

These can then be used to match Products with Buyers where there is a match in those tables.

So the idea here is that Buyers can register and have a profile etc, and when logged in be able to view the Products where there is a match.

Does that make sense?

Sign in to reply to this post

Jason ByrnesWebAssist

OK, when a user logs in with security assist, the users ID is stored in a session variable.

This user id can be used to create the relationship between the selected products, then used to filter the recordset to display them


The userlevel authentication tutorial on the security assist support page talks more about the session variables that are created on login, how to add them and use them in creating page access rules.


the sessions can also be used when creating recordsets, see the profile page for an example, and in the insert record and update record behaviors.

Sign in to reply to this post

iainmacdonald331081

Thanks Jason - sounds like it should be possible then. I'm only just about to start the project, so it'll be while before I get that far.

I'll have a look at that tutorial though.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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