Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6719381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:05:11+00:00 2026-05-26T09:05:11+00:00

I have a database with three tables set up like this: Users : username,

  • 0

I have a database with three tables set up like this:

Users: username, user_id
Products: product_name, product_id
User_Products: product_id, user_id, relation_level

These are all pretty straight forward, when a user clicks to ‘like’ a product, it asks how much they like it (rated 1-5) and stores that information in the User_Products table, storing the product_id from the Products table, user_id from the Users table and relation_level based on how much they like the product.

What I want to do is generate suggestions for products the user might like, based on products the user likes and how much they like the products, getting users who like similar products and finding products the user doesn’t already know about, based on the number of people who like them and the level they like them.

Does anyone have any ideas how I can achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:05:12+00:00Added an answer on May 26, 2026 at 9:05 am

    This sounds like the most classic and canonical of recommender engine problems. Apache Mahout has a complete recommender engine framework, including a simple non-distributed, non-Hadoop version that will be easy to experiment with.

    In particular, you will just want to plug in one of the JDBC-based DataModel implementations to start in order to read your data. The rest is a few lines of code.

    Now, I know you said PHP. Mahout is Java. But you can look at setting this up as a web service that your PHP could access.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three database tables: users emails invitations Emails are linked to users by
I have a database with three tables, user, update and error. I have set
I have a database with three tables: user_table country_table city_table I want to write
I have a MySql database with three tables I need to combine in a
This is a study project. I have three database classes A,B,C. There is a
I have a self-referencing many-to-many relationship between users and managers that looks like this:
i have in the database typical tables like user, usergroup, and they have relations.
Hy, I have a users table in mysql with username and alias set to
I have an existing database with tables which each have 4 partitions (there are
We have two tables in a SQL Server 2005 database, A and B.There is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.