07.02.2016, 15:33
Hello guys, i have a question. How can i save IDs obtained by a sql query in one array? (Various IDs obtained in one query)
This is an example of one random table and this is the format of the query
(SELECT ID FROM table WHERE Nombre='Minikole')
I would save those IDs in array[3] (for example), something like this:
array[0] = 4;
array[1] = 8;
array[2] = 14;
This is all, thank you very much for the help.
This is an example of one random table and this is the format of the query
(SELECT ID FROM table WHERE Nombre='Minikole')
ID | Nombre |
4 | Minikole |
8 | Minikole |
14 | Minikole |
array[0] = 4;
array[1] = 8;
array[2] = 14;
This is all, thank you very much for the help.