M
M
maximus2015-11-08 02:01:48
PHP
maximus, 2015-11-08 02:01:48

How to display data one by one from a mysql table?

There is a table:

id	type	title
1	1	Дом СК-89
2	1	Дом СК-103
5	2	Дом СК-185
6	3	Баня-27
9	1	Дом СК-26
10	1	Дом СК-129
11	2	Дом СК-166
12	2	Дом СК-180
13	2	Дом СК-195
14	3	Баня-42
15	3	Баня-76
16	3	Баня-93

It must be output in this format:
1

Дом СК-26	Дом СК-89
Дом СК-103	Дом СК-129

2

Дом СК-166	Дом СК-180
Дом СК-185	Дом СК-195

3

Баня-27		Баня-42
Баня-76		Баня-93

Help implement this design.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question