Jump to content

PHP Dynamic Filtering and Option Table


Atakan

Recommended Posts

Hello I want product filter groups by category.

There will be different options.

Ex: http://prntscr.com/sr00ay

Product Table : http://prntscr.com/sr00rm

Option Groups Table : http://prntscr.com/sr013r

Options Table : http://prntscr.com/sr01fk

Product Option Table : http://prntscr.com/sr01r3

How can I build this structure? And how should it be sql for filtering? Is the structure correct? I'm waiting for your help.

Edited by Atakan
Link to comment
Share on other sites

It is possible (and preferred) for you to show table structures without pictures

DESCRIBE season;
+--------------+---------+------+-----+---------+-------+
| Field        | Type    | Null | Key | Default | Extra |
+--------------+---------+------+-----+---------+-------+
| season       | char(4) | NO   | PRI |         |       |
| season_start | date    | YES  | MUL |         |       |
| season_end   | date    | YES  | MUL |         |       |
+--------------+---------+------+-----+---------+-------+


SHOW CREATE TABLE season;

CREATE TABLE `season` (
  `season` char(4) NOT NULL,
  `season_start` date DEFAULT NULL,
  `season_end` date DEFAULT NULL,
  PRIMARY KEY (`season`),
  KEY `idx_season_start` (`season_start`,`season_end`),
  KEY `idx_season_end` (`season_end`)
)  

 

Link to comment
Share on other sites

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.