Okej.
I'm not sure if I understand how to do it. Not even sure I'm promitted to change the structure... Well well. It seems better.
The data coming from the database is often around 100 rows..? Two tables - one query?
//sql-structure: id, user, phone, client, item, check, date
id - auto
user - the one who registered
phone - the costumers is registered by phonenumber
client - the company
product - the purchased product, sometimes need explode().
check - controll
date - date
Should I make two tables:
table_customer:
user - the one who made registered
phone - the costumers is registered by phonenumber
item - info from table item
check - controll
date - date
table_item: // client is given by item.
client - the company
item - the purchased product, sometime explode().