Jump to content

Need help in creating a customer and retailer table for a price comparison website


Go to solution Solved by hance2105,

Recommended Posts

i will explain the scenario as i don't know how to do it and i don't know if someone ever did it before.


I am creating a price comparison website. The customers can add products as their favourites from a list of products. They can also add 4 retailers as their favourites. Both will be stored in 2 tables - tblfavourites and tblfav_retailer. All the retailers have set different prices for the products.


I want to create a table displaying the products set as favourites by the customers and the 4 retailers. Under each retailer, will be displayed the price of the product they set. The total price of products by each retailer will be displayed at the bottom.


Can anyone help me out in creating that?


  • Solution

i have the following tables

 

tblretprod - id, user_id, prod_id, prod_price

 

tblproduct - prod_id, prod_name, prod_brand, prod_desc, prod_photo

 

tblfavourites - fav_id, prod_id, user_id

 

tblfav_ret - id, user_id, ret_id

 

tblretailer - ret_id, user_id, ret_name, ret_address, ret_phone, ret_fax

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.