If I can filter say 50 names(including the same name more than once) to just 5 names (no repitition) using DISTINCT and echo all five of them echo $row['name'] , how do I do the same thing but this time echo only one of the five without knowing the actual value, (something like echo $row + something unique for the each item)?
I can do this echo $row['name'];
to get John
Susan
Kerry
Tim
Mika
I want to do something like this:
echo $row[?????];
to get the second item which in this case would be:
Susan
and then when my table content changes, the code
echo $row[????];
would still be referring to the second item, which would be a different name this time around.
I hope you understand what I want