-1
I’m having trouble filtering into a while the data I get from a database. I am writing HTML + PHP generate the layout and to get data from sqlite database.
Table: entries select * from ORDER BY data entries;
numero nome data
4 Manuel 2018-11-17
6 Rui 2018-11-17
6 Rui 2018-11-17
2 Raul 2018-11-17
2 Raul 2018-11-17
2 Raul 2018-11-17
3 Pedro 2018-11-17
3 Pedro 2018-11-17
2 Raul 2018-11-18
4 Manuel 2018-11-18
6 Rui 2018-11-19
6 Rui 2018-11-19
2 Raul 2018-11-19
2 Raul 2018-11-19
My difficulty is to manage with HTML and PHP to filter and group the data in this way but with some conditions, if the name and date are the same create and together in a select menu, if it is different in date or name create a new select menu.
example:
<!DOCTYPE html>
<html>
<body>
<select>
<option value="x">Manuel 2018-11-17</option>
</select>
<select>
<option value="x">Rui 2018-11-17</option>
<option value="x">Rui 2018-11-17</option>
</select>
<select>
<option value="x">Raul 2018-11-17</option>
<option value="x">Raul 2018-11-17</option>
<option value="x">Raul 2018-11-17</option>
</select>
...
<select>
<option value="x">Rui 2018-11-19</option>
<option value="x">Rui 2018-11-19</option>
</select>
...
</body>
</html>
And what’s the use of that, it seems kind of pointless.
– user60252
I am sorry if it has become meaningless in any way, but it was the quick way I could explain what I intended to do. Actually I am not using select menu but generating several listview with Forms using JQM so that I can process the information contained there. image
– Rui Branco
Well, then, ask the question "with reality" because otherwise you run the risk of the question being closed and you get a negative vote.
– user60252