I am an <older> rookie, please be gentle with me.
I make a table called from a DB using PHP
The table loops the DB untill all the occupied fields are displayed - works fine -
I am trying to insert a button for each row (JS), that when pressed will highlight and copy to clipboard one particular cell of that row
The button is not working properly. When I press any of the buttons on the table, only the first cell is higlighted and copied.
I know it is because all the buttons are calling the same cell, but I don't know how to make the button increment for each row.
Any of you programming gru's able to help me?. - yes, I know this will only work in IE -
I think the solution is in JS, but I am not sure if it can be fixed in PHP.
Please keep it simple for me.
Thanks in advance -
Floyd
Here's my code (i know is it not perfect, but neigher am I)