E
E
era-hostingru2017-10-08 17:15:13
PHP
era-hostingru, 2017-10-08 17:15:13

Table search (there are 51 of them), how to do it?

Good afternoon. I have an items table. In it, according to the user's id, we find the id of the column that belongs to the user. Question: you need to find out in which column item0...item51 (the data is written randomly in them) the item is located (the entry there is: 50|100 50 is the id, 100 is the number) and display the quantity, that is, which is in the column. And one more question: You need to find all (in those columns) data 54|name and write the number of found or the word "is".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rastishka, 2017-10-08
@Rastishka

In it, according to the user's id, we find the id of the column that belongs to the user
Your database is very, very wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question