close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Filter record base on user and show their status

Thread began 7/15/2021 12:16 am by Rokon | Last modified 7/20/2021 9:48 am by Rokon | 599 views | 8 replies

Rokon

Filter record base on user and show their status

Hello

I am having a problem which as below and requesting for help.


I have a website where many books content are there. I also have a usergroup who come here to read the books and then base on their choice by using the login system they can make any books content favorite or non favorite etc, so that next time when they comes back and login they can find their previous favorite content. Note that I am storing their favorite contentID in a seperate table.

Now I need to present always to a user with all the books content and only a mark ❤️ will show beside the content that this contentID is in their favorite list and others are not in his favorite list by showing another ❤ .

The problem arise when a user loged in and visit to the page then it shows only the filtered favorite ❤️ datas based on their userID and not showing others non favorite content. I need to present always full content list (favorite and non favorite data of the user) to every user which will show which one is in favorite and which one not, but how to make the joint table query for showing the full content for every seperate user I am lost here. Please guide me.

Below is an example of the tables;


Content Table
==========
contentID
content


User Table
=======
userID
username
userpass


Favorite Table
==========
favID
userID
contentID

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