MySQL Forums
Forum List  »  Newbie

Re: MySQL Structure - Order Portal
Posted by: LLoyd Owen
Date: July 14, 2016 12:23PM

Here's the scenario I envision:

Customer logs into system, based on customer logged in they only see products that they're permitted to buy (In MySQL hopefully). They can then select the products and go through to purchase. But each customer will have a different array of products to choose from.

In the backend, there currently is a users table, products table and a customers table.

I need a way of defining what products (in the products table) customers (in the customers table) are allowed to buy. & In PHP I can use a query for current logged in customer to view XYZ products.

I can see the logic if there is just one product I'd need a column "ProductsAllowed" with the ID of the product, except there are a lot of products.

Sorry if it's confusing - i confuse myself with this.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL Structure - Order Portal
July 14, 2016 12:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.