Home > Backend Development > PHP Tutorial > mysql-php get data

mysql-php get data

WBOY
Release: 2016-09-26 08:40:16
Original
1038 people have browsed it

How can PHP take the shopping cart ID array sent by pist and classify these shopping carts according to the stores they belong to? For example, if [1,2,3,4,5] shopping cart items are posted, 1 and 2 belong to store A. , 3 and 4 belong to store B, and 5 belongs to store C. Then according to the three major categories of ABC stores, the shopping cart products under the respective stores are formatted into json format and output

Reply content:

How can PHP take the shopping cart ID array sent by pist and classify these shopping carts according to the stores they belong to? For example, if [1,2,3,4,5] shopping cart items are posted, 1 and 2 belong to store A. , 3 and 4 belong to store B, and 5 belongs to store C. Then according to the three major categories of ABC stores, the shopping cart products under the respective stores should be formatted into json format and output

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template