I have a select that returns the equally repeated lines, along with the total. I need to reference this group of ID's to pass as an argument.
The result of my query is the array below. Basically it counts how many lines has Papa Charlie in text , and with group_concat
inform me of ID's.
Array(
[0] => array(
[count] => 3
[text ] => Papa Charlie
[ids ] => 1,2,3
)
)
It is precisely this group of ID's (1,2,3) that will undergo an action. I did not want to have to pass the ID's explicitly as for example submit.php?id=1,2,3
.
I thought about creating a hash
for the text field as the argument md5(text)
, but I do not know if it would be the best option. It would be something like submit.php?hash=0f0b429bf93c7ee9696ae9541a02c10e
.
What would be the most feasible way to reference this group?