Home > Backend Development > PHP Tutorial > Shopping mall multi-attribute filtering, how to search! !

Shopping mall multi-attribute filtering, how to search! !

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-10-17 09:30:05
Original
1237 people have browsed it

Multi-attribute filtering for shopping malls, how to search! !

Shopping mall multi-attribute filtering, how to search! !
Shopping mall multi-attribute filtering, how to search! !

As shown in the picture, I want to find products with attr_id=8 equal to 2.2*2.0m and attr_id=10 equal to leather art bed

Reply content:

Multi-attribute filtering for shopping malls, how to search! !

Shopping mall multi-attribute filtering, how to search! !
Shopping mall multi-attribute filtering, how to search! !

As shown in the picture, I want to find products with attr_id=8 equal to 2.2*2.0m and attr_id=10 equal to leather art bed

First explain clearly the relationship between the two tables, which is the foreign key, which field in the table corresponds to which field in the other table; mainly use the multi-table joint query join statement

Aren’t the attr_id of table 1 and the attr_id of table 2 the same id? Or is your question wrong?

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template