J
J
JohnStaar2016-04-22 20:47:30
Python
JohnStaar, 2016-04-22 20:47:30

How to replace values ​​from the received row of the database?

there are 3 tables in the database, they are called List, Brand and Goup
in Group there is data that looks like [2]-[3], [9]-[3]
[2] means that you need to take data from the List table by id 2
and the data in the second bracket [3] from the Brand table by id 3
, let's say, you need to make a replacement, decrypt this data and put it in an array before further processing..
List
list_id, title
1. car
2. motorcycle
3. tractor
Brand
brand_id, title
1 audi
2. john
deere 3. ducati
Group
Group_id, text
1. [4]-[23], [9]-[3]
2. [2]-[37],[8]-[41], [11]-[24], [2]-[15]

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