Where the td class is simply called "key" and all td are then called the same. We are trying to add in some consecutive lettering functionality so that each row then gets labelled with a consecutive number.
We've tried adding this into the top of the page:
// array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i');
foreach (range('a', 'z') as $letter)
Which does generate consecutive letters, and then this change to the code:
If feasible, I would make that an ID attribute instead of CLASS, since that is its purpose: to uniquely identify that element. So you might keep the single class name for all those elements so that you can use that for common CSS attributes, then access the specific ID(s) for special treatment of those elements.
echo ' <tr class="key" id="'.$_field['name'].'">'
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation